of

expect fun of(ctx: CoroutineContext?): AsyncFs(source)

Creates a new instance of AsyncFs with the provided CoroutineContext. This can be useful in a number of situations, such as scoping things to a job, or redirecting error handling via a custom coroutine exception handler.

Return

An instance of AsyncFs. If provided ctx is null or equal to Default.ctx, then Default is returned. If provided ctx is EmptyCoroutineContext, then Empty is returned.

Parameters

ctx

The CoroutineContext

actual fun of(ctx: CoroutineContext?): AsyncFs(source)
@JvmStatic
actual fun of(ctx: CoroutineContext?): AsyncFs(source)
actual fun of(ctx: CoroutineContext?): AsyncFs(source)