TaskGraphExecutor

class TaskGraphExecutor(worker: KmpWorker, scope: CoroutineScope = CoroutineScope(Dispatchers.Default))

Executes a TaskGraph respecting dependency ordering.

Independent nodes run in parallel via coroutineScope. A node only starts once ALL its dependencies have reached TaskState.Success. If any node fails, the entire graph fails.

Constructors

Link copied to clipboard
constructor(worker: KmpWorker, scope: CoroutineScope = CoroutineScope(Dispatchers.Default))

Functions

Link copied to clipboard
suspend fun execute(graph: TaskGraph)