()
| 87 | } |
| 88 | |
| 89 | func (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. |
no outgoing calls