SuspendCloseableGraph

A CloseableGraph alternative whose generated close can suspend, so its @OnGraphClose callbacks can too. Requires Metro's suspend provider support.

Functions

Link copied to clipboard
abstract suspend fun close()

Closes the graph's extensions and runs its close callbacks. Only the first call does anything. Cancelling the caller doesn't stop cleanup partway through.