Implemented the same concept `dex_scheduler_spawnv` ( https://gnome.pages.gitlab...
kolunmi @kolunmi@hachyderm.io
Implemented the same concept `dex_scheduler_spawnv` ( https://gnome.pages.gitlab.gnome.org/libdex/libdex-1/method.Scheduler.spawnv.html ) uses for some other libdex functions in bazaar: https://github.com/bazaar-org/bazaar/commit/126fd99b304a10adb908f0317febec0c1e4d2690
Simply put, this uses GClosure ffi stuff to allow values to be marshalled directly into callback arguments in C, instead of having to manually define a callback data struct, allocate it, and free it every time you need more than a pointer in the future callback. While being more ergonomic, this will also encourage less fiber use throughout bazaar so we aren't suspending stacks for every little task
Support me: https://ko-fi.com/kolunmi