DispatcherErrorSink
このコンテンツはまだ日本語訳がありません。
DispatcherErrorSink = (
error,dispatcherId) =>void
Defined in: src/Dispatcher.ts:18
Where a dispatcher reports a unit of work that threw.
A dispatcher cannot reach the system logger on its own: it is
constructed by whoever wants one — ActorSystemOptions.withDispatcher,
ActorOptions.withDispatcher, a bare new ImmediateDispatcher() in a
test — and none of those has a system, let alone a logger. So the sink
is a slot the owner fills in: ActorSystem assigns one when it adopts a
dispatcher, and everything the framework logs about a failed unit flows
through that assignment (#410).
dispatcherId rather than the dispatcher itself, because the sink is a
reporting hook, not a handle: a report must not be able to schedule more
work on the queue that just failed.
Parameters
Section titled “Parameters”unknown
dispatcherId
Section titled “dispatcherId”string
Returns
Section titled “Returns”void
