THIS_THREAD(3em)
π this_thread(3em) β bestie edition π
okay so this is the this_thread page from the this_thread section of the manual (that's the 3em bit, iykyk) β it's the Emilua bindings for C++'s this_thread, and honestly? iconic. let's get into it π«Ά
β¨ NAME β¨
this_thread β the Emilua bindings for C++'s this_thread. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
like, here's how you actually pull it into your code, no cap:
local this_thread = require 'this_thread'
this_thread.yield()
so you require it first (obvi) and then you can call this_thread.yield(). slay β¨
π¦ DESCRIPTION π¦
okay so this_thread.yield() provides a hint to the implementation to reschedule the execution of threads, which β and this is the whole point β allows other threads to run. it's giving "step aside, let the other girls have their moment" energy π
notice it's a hint, not a promise, bestie. the implementation gets the message and does its thing. that's the entire function. short, sweet, ate π π₯
π friendly reminder that this page covers exactly what's written here β no extra lore, no invented behaviour. short king of a manpage, fr fr.
and that's the whole page!! π written against Emilua 0.12.1, dated the very mysterious 1980-01-01 (yes really, don't ask π), and that's the sign-off bestie β go yield responsibly π§πββ
π¦ where this page comes from
- nixos 26.05: emilua-this-thread 1.0.3
- nixpkgs unstable: emilua-this-thread 1.0.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms