squadron_worker library

Classes

CancellableToken
Channel
A Channel supports communication from a client to a platform worker. It is used to send a WorkerRequest to a platform worker.
CompositeToken
Composite cancellation token. The token is cancelled automatically depending on mode: with CompositeMode.any, the composite token is cancelled as soon as when one of the tokens is cancelled. With CompositeMode.any, the composite token is cancelled when all tokens are cancelled.
TimeOutToken
Time-out cancellation tokens used by callers of worker services. The token is cancelled automatically after a period of time indicated by duration with a countdown starting only when the task is assigned to a platform worker.
Worker
Base worker class.
WorkerStat
Base statistics for worker.

Enums

CompositeMode
Composite token cancellation mode

Exceptions / Errors

CancelledException
Exception to keep track of task cancellation.
SquadronError
Squadron Error
SquadronException
Base abstract class for exceptions in Squadron.
TaskTimeoutException
Exception to keep track of task timeouts.
WorkerException
Exception to keep track of errors encountered in a worker.