Skip to main content

tls_get

Function tls_get 

Source
pub fn tls_get(slot: usize) -> Result<usize, TlsError>
Expand description

Read a coroutine-local storage slot for the currently running coroutine. Slots start at 0. No heap allocation occurs. Returns TlsError::InvalidSlot if slot >= TLS_SLOTS, or TlsError::NotInCoroutine outside a running coroutine.