Interface Task
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Piece of code that that has no result and may throw an exception.
Similar to
Runnable or Callable.-
Method Summary
-
Method Details
-
of
-
of
-
toRunnable
Wraps a task into a runnable. -
toCallable
Wraps a task into a callable that returnsnull. -
run
-