take

abstract suspend fun take(): Future<V>

Retrieves and removes the Future representing the next completed task, waiting if none are yet present.

Return

the Future representing the next completed task

Throws

if interrupted while waiting