Destroy

Destroys the context.

Destroys the context. All pending operations are cancelled. The call blocks until a clean shutdown can be guaranteed. Destroying a nullptr is a no-op.

class Context:
    // Destroys the context.
    fun destroy()