Builds a TrampolineExecutionContext instance.
Builds a TrampolineExecutionContext instance.
is the ExecutionContext
to which the
it defers to in case asynchronous or time-delayed execution
is needed
TrampolineExecutionContext instance that executes everything immediately, on the current thread.
TrampolineExecutionContext instance that executes everything immediately, on the current thread.
Implementation notes:
blocking
operations are chained, at some point
the implementation will trigger a stack overflow errorreportError
re-throws the exception in the hope that it
will get caught and reported by the underlying thread-pool,
because there's nowhere it could report that error safely
(i.e. System.err
might be routed to /dev/null
and we'd
have no way to override it)