scoop:scoop.concurrent:0.1.0
src/coroutine_worker_driver.scoop
Selected production source · src/coroutine_worker_driver.scoop
1
package scoop.concurrent3
/** Connects an owned I/O reactor to one coroutine worker without a second scheduler. */4
public interface CoroutineWorkerDriver {5
/** Enters the worker's physical thread before it starts executing tasks. */6
public fun enter()7
/** Advances ready events without blocking; called between finite batches of tasks. */8
public fun poll()9
/** Waits for events or a persistent wake notification after the scheduler rechecks work. */10
public fun park()11
/** Interrupts a concurrent or subsequent park; may race with close. */12
public fun wake()13
/** Drains owned events on the worker after all accepted coroutine work has finished. */14
public fun close()15
}