Skip to content

CoroutineAllocatorKind

tevelee edited this page Jul 25, 2026 · 1 revision

CoroutineAllocatorKind

The allocation strategy used by a Swift coroutine frame.

public enum CoroutineAllocatorKind: UInt32, Sendable 

Inheritance

Sendable, UInt32

Enumeration Cases

stack

The frame is allocated with stacksave/stackrestore.

case stack = 0

async

The frame is allocated by the async task allocator.

case async = 1

malloc

The frame is allocated with malloc and free.

case malloc = 2

typedMalloc

The frame uses the runtime's typed malloc allocator.

case typedMalloc = 3
Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally