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 juptuneEventLoopCancelThread

1
2
3
4
5

Documentation

User Facing stuff

Cancels the current event loop thread.

More specifically, canceling a thread means that juptuneEventLoopIsThreadCanceledwill now return true, and it will also cause functions like yieldto start returning a Resultthat contains an error.

Canceling is intended for when the thread needs to gracefully shutdown ASAP. Application code should currently refrain from attempting to perform any action that generates an io_uring event, as it may be dropped or completely ignored.

The exact behaviour of canceling threads is in a bit of development limbo right now, so try to not make too many assumptions on what you're allowed to do. I hope to properly refine this over time into something more exact.

See_Also

juptuneEventLoopCancelAllThreads, juptuneEventLoopIsthreadCanceled, yield

ON THIS PAGE