Class ProtoTestAsync
The one bridge for frameworks whose lifecycle hooks are synchronous. It blocks the calling thread until the async lifecycle completes; the adapters only use it on runner hooks that do not install a single-threaded synchronization context, where a blocking wait cannot deadlock.
public static class ProtoTestAsync
- Inheritance
-
ProtoTestAsync
- Inherited Members
Methods
RunSync(Func<ValueTask>)
Blocks until the async lifecycle call completes and rethrows its failure.
public static void RunSync(Func<ValueTask> operation)
Parameters
RunSync<T>(Func<ValueTask<T>>)
Blocks until the async lifecycle call completes and returns its result.
public static T RunSync<T>(Func<ValueTask<T>> operation)
Parameters
Returns
- T
Type Parameters
T