contextResource

suspend fun contextResource(name: String, block: suspend ContextResourceBuilder.() -> Unit): Context

See also

Parameters

name

The unique name of the resulting resource.

block

Builder for Context.