UnsafeForCoroutineCancellation

Opt-in marker for functions that do not call ensureActive, meaning CancellationException may be silently suppressed.

Using these functions inside a suspend context can interfere with structured concurrency — a cancelled coroutine may continue executing instead of terminating. Prefer the EnsuresActiveCoroutine-annotated counterparts in suspend contexts.

Supporting functions: nullable, result, outcome, maybe, fault, catchString, catchException, RaiseScope.catch, RaiseScope.fold.

See also