closeAsync

suspend fun closeAsync()

Suspending form of close with the same ownership, error-handling and idempotence semantics: stop() + cleanup() of PluginLifecycle components are awaited instead of blocking the calling thread. Calling either close or closeAsync more than once (in any combination) closes the components only once.