MCPcopy Create free account
hub / github.com/buke/quickjs-go / initScheduler

Method initScheduler

context.go:89–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89func (ctx *Context) initScheduler() {
90 ctx.jobQueue = make(chan func(*Context), defaultJobQueueSize)
91 ctx.jobClosed = make(chan struct{})
92}
93
94// Schedule enqueues a job to be executed on the Context's thread.
95// Jobs run sequentially via ProcessJobs to keep QuickJS access single-threaded.

Callers 3

NewContextRawMethod · 0.95
NewContextWithOptionsMethod · 0.95

Calls

no outgoing calls

Tested by 1