cirq.work.work_pool.CompletionOrderedAsyncWorkPool

Ensures given work is executing, and exposes it in completion order.

num_active The amount of work in the pool that has not completed.
num_uncollected The amount of work still in the pool that has completed.

Methods

async_all_done

View source

An awaitable that completes once all work is completed.

include_work

View source

Adds asynchronous work into the pool and begins executing it.

set_all_work_received_flag

View source

Indicates to the work pool that no more work will be added.