FiberPool.onError

void onError(void delegate(Throwable) handler) @safe nothrow

Set the error handler for unhandled exceptions in pooled fibers.

When a pooled work delegate throws, the error handler is called with the Throwable. If no handler is set, the exception is silently swallowed (the fiber continues to the next work item).

Parameters

handlerDelegate to call on unhandled work exceptions.