of

Returns an instance of Disposable.Once that is not thread-safe.

Throws


fun of(concurrent: Boolean, disposable: Disposable): Disposable.Once

Returns an instance of Disposable.Once.

Parameters

concurrent

true for thread-safe, false not thread-safe

Throws