Zulip Chat Archive
Stream: new members
Topic: How can I invoke a new thread using Lean4?
Samuel Durante (Dec 28 2023 at 19:46):
Currently, I'm developing a TCP chat with Lean4, and I need to invoke a new thread. Does have Lean4 some function already implemented that makes this?
Mario Carneiro (Dec 28 2023 at 19:58):
Lean doesn't expose raw threads (it probably should), but you can use the Task
system instead. IO.runTask
will start the passed function on another thread
Alok Singh (Dec 30 2023 at 10:25):
do you think it's likely to in near-ish future?
Sebastian Ullrich (Dec 30 2023 at 12:24):
What do you expect of threads that tasks don't provide?
Last updated: May 02 2025 at 03:31 UTC