You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we make a Joblet a Callable and add a wrapper to turn a Callable into a Joblet, then we can take code that was previously being submitted to an ExecutorService and just turn it trivially into a Joblet.
This will require a change of the interface to use a call method. Alternatively, if we want a more gradual change, we could just as well make it a Runnable and force thrown exceptions to be RuntimeExceptions. However, if we want to support catching a more diverse variety of errors we could just as well make it identical to Callable#call .
The text was updated successfully, but these errors were encountered:
If we make a
Joblet
aCallable
and add a wrapper to turn aCallable
into aJoblet
, then we can take code that was previously being submitted to anExecutorService
and just turn it trivially into aJoblet
.This will require a change of the interface to use a
call
method. Alternatively, if we want a more gradual change, we could just as well make it aRunnable
and force thrown exceptions to beRuntimeException
s. However, if we want to support catching a more diverse variety of errors we could just as well make it identical toCallable#call
.The text was updated successfully, but these errors were encountered: