Threadly is a lightweight and modern concurrency scripting language designed to simplify parallel execution and asynchronous programming tasks. It provides a concise syntax and essential built-in actions, making it easy to handle concurrent workflows, execute HTTP requests, manage files, and control timing within your scripts.
Example (Check out examples/
)
task log1
sleep(3000)
log("Hello World! (hi)")
endtask
task log2
log("Hi!")
!log1
endtask
parallel
!log1
!log2
If you haven't already, install Bun to run the interpreter.
bun add --global threadly
bunx --bun threadly --help
For now, as Threadly is in very early beta, you must use Bun to run the interpreter!
bunx --bun threadly --file <file to run here>