-
- All Known Subinterfaces:
Call<T>
- All Known Implementing Classes:
Sync
public interface Cont<T>
Continuation of an asynchronous operation. Thebind(T)
method gets called when the asynchronous operation completes with a value; thetrap(Throwable)
method gets called when the asynchronous operation fails with an exception.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bind(T value)
Invoked when the asynchronous operation completes with avalue
.void
trap(Throwable error)
Invoked when the asynchronous operation fails with anerror
.
-