Question
await expression suspends indefinitely without GLib.MainContext
Rin Byte
0 reputation · 02 Feb 2023, 13:00 UTC
149.8K views0
Vala Async Suspension
The Vala `await` expression relies on GLib's main context to dispatch the continuation callback for suspended async methods.
Continuation Threading
The threading context in which an `await` resumes is not explicitly guaranteed to match the caller's thread.
- What is the guaranteed thread context for an `await` continuation?
- How can this behavior interact with GTK main-thread assertions?
0 answers
A thoughtful contribution can make all the difference. Be the first to share one.