close

abstract suspend fun close()

Releases the resource. A second call waits for the first and reports the same result. A close finishes even when its caller is cancelled.