Package com.mrivanplays.process
Class ResultedProcessesCompletion<T>
java.lang.Object
com.mrivanplays.process.ResultedProcessesCompletion<T>
- Type Parameters:
T
- result type parameter
Represents a completion of all the
resulted processes
- Since:
- 0.0.1
- Author:
- Ivan Pekov
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when allProccesses
are done.void
whenDoneAsync
(Consumer<Map<String, ProcessResult<T>>> callback) Called when allProcesses
are done.
-
Method Details
-
whenDone
Called when allProccesses
are done.WARNING: THREAD BLOCKING METHOD.
- Parameters:
callback
- aConsumer
of the results
-
whenDoneAsync
Called when allProcesses
are done. The difference fromwhenDone(Consumer)
is that the waiting and thecallback
call is done asynchronously.- Parameters:
callback
- aConsumer
of the results.- See Also:
-