runtimeSection

"RUNTIME SECTION" A function or method that can _use_ the runtime thanks to thread attachment.

Runtime initialization must be dealt with externally with a ScopedRuntime struct (typically long-lived since there can be only one).

Warning: every GC object is reclaimed at the end of the runtime section. By using GC.addRoot you can make GC object survive the collection.

nothrow @nogc
runtimeSection
(
F
)
if (
isCallable!(F)
)

Return Value

Type: auto

a callback Voldement inside which you can use the runtime, but you can't escape GC memory.

Meta