Rubellite::Concurrency
Class methods
with_gvl
Runs a Crystal block while holding the Ruby GVL (from a thread that currently doesn't hold it).
without_gvl
Runs a Crystal block with the Ruby Global VM Lock (GVL) released. Allows other Ruby threads to run concurrently while this thread performs blocking I/O, waiting on channels, or heavy computations.