of

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

Throws


fun of(concurrent: Boolean, executable: Executable): Executable.Once

Returns an instance of Executable.Once.

Parameters

concurrent

true for thread-safe, false not thread-safe

Throws