Class CoroutineSupport
java.lang.Object
io.micronaut.configuration.mongo.coroutine.CoroutineSupport
Bridges the coroutine Mongo driver suspend API to Java callers.
- Since:
- 6.0.0
- Author:
- graemerocher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA suspendable Mongo coroutine operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tawait(CoroutineSupport.SuspendOperation<T> operation) Execute a suspend operation and wait for the result.
-
Method Details
-
await
Execute a suspend operation and wait for the result.- Type Parameters:
T- The result type- Parameters:
operation- The operation- Returns:
- The result
-