bloqade.task.BatchFuture
← Module overview
class
method
sourcemethod
sourcemethod
method
method
method
classBatchFuture¶source
bloqade.task.BatchFuture
Bases: abc.ABC, Generic[RetType]
Protocol for future objects that can be awaited.
class BatchFutureAttributes
| Name | Type | Default | Description |
|---|---|---|---|
MISSING_RESULT | — | Literal[None] |
methodresult¶source
bloqade.task.BatchFuture.result
def result(timeout: float | None) -> list[RetType]Returns the result of the future, blocking until it is available or the timeout expires.
Parameters
| Name | Type | Description |
|---|---|---|
timeout | float | None |
Returns
list[RetType]
methodpartial_result¶source
bloqade.task.BatchFuture.partial_result
def partial_result() -> list[RetType | MISSING_RESULT]Return all results that are available so far, or MISSING_RESULT for those that are not yet available.
Returns
list[RetType | MISSING_RESULT]
methodfetch¶source
bloqade.task.BatchFuture.fetch
methodcancel¶source
bloqade.task.BatchFuture.cancel
methodcancelled¶source
bloqade.task.BatchFuture.cancelled
methoddone¶source
bloqade.task.BatchFuture.done