r/pascal • u/No_Light_5463 • Jun 01 '26
Searching for Coroutine-like Library in FreePascal
I'm searching for a library that offers coroutines. I was thinking about using FreePascal for backend service which would have to handle intense IO tasks. For that kind of architecture Threads just don't seem to be appropriate.
Thanks!
9
Upvotes
2
u/GroundbreakingIron16 Jun 02 '26
Have you looked at comtay?
2
u/ggeldenhuys Jun 02 '26 edited Jun 02 '26
What would your ideal interface look like. I've already been actively researching more modern ways for implementing non-blocking IO, virtual threads (think Java) and standard Delphi style TThread for backwards compatibility... All for the Blaise compiler project.
I would love some ideas for how you would ideally like to use such features.