Class CoroutineSupport

java.lang.Object
io.micronaut.configuration.mongo.coroutine.CoroutineSupport

@Internal public final class CoroutineSupport extends Object
Bridges the coroutine Mongo driver suspend API to Java callers.
Since:
6.0.0
Author:
graemerocher
  • Method Details

    • await

      public static <T> T await(CoroutineSupport.SuspendOperation<T> operation)
      Execute a suspend operation and wait for the result.
      Type Parameters:
      T - The result type
      Parameters:
      operation - The operation
      Returns:
      The result