Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions juptuneEventLoopIsThreadCanceled

1
2
3
4
5

Documentation

Determines if the current thread has been canceled.

It's best practice to write your code in a way that supports gracefully exiting, especially when explicitly requested from a thread being canceled.

There's some mechanisms in place to encourage this, such as yield-like functions returning an error-containing Resultwhen a thread is canceled, however sometimes manually checking the state of the thread's cancel status is desirable.

Returns

trueif the thread has been canceled, falseotherwise.

ON THIS PAGE