Interface AsynchronousFlow
- All Known Implementing Classes:
MockAsynchronousFlow
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides an unmanaged asynchronous flow outside the ManagedFunction.
This allows plugging in other asynchronous libraries to enable asynchronous
operations within a ManagedFunction. This can include running
asynchronous operations on different Thread instances of the third
party library.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete(AsynchronousFlowCompletion completion) Invoked by application code once theAsynchronousFlowis complete.
-
Method Details
-
complete
Invoked by application code once the
AsynchronousFlowis complete.Note that only the first invocation of this method is considered. All further invocations are ignored.
Furthermore, if the
AsynchronousFlowtakes too long to complete then all invocations are ignored. TheManagedFunctionwill be throwing anAsynchronousFlowTimedOutEscalation.- Parameters:
completion-AsynchronousFlowCompletionto updateManagedObjectstate and possibly throw failures.
-