Contents

init(_:function:)

Convert a non-copyable continuation to a Checkedcontinuation

Declaration

init(_ continuation: consuming Continuation<T, E>, function: String = #function)

Discussion

A checked continuation may be escaped into contexts where the non-copyable semantics would not be able to statically enforce the resume-once semantics, however the correct use of the continuation is enforced in some way at runtime.