Go to file
2024-07-19 10:26:58 -05:00
bun fix: init 2024-07-16 12:55:45 -05:00
src fix: rm ath 2024-07-19 10:26:58 -05:00
test/Test fix: init 2024-07-16 12:55:45 -05:00
.gitignore feat: copy csv-stream 2024-05-14 11:41:29 -05:00
.tool-versions fix: init 2024-07-16 12:55:45 -05:00
bun.lockb fix: npm packages, file renaming 2024-05-14 11:43:50 -05:00
jsconfig.json feat: copy csv-stream 2024-05-14 11:41:29 -05:00
LICENSE docs: add LICENSE 2024-07-10 13:48:09 -05:00
package.json chore: prepare v0.0.3 2024-07-17 12:08:07 -05:00
README.md fix: init 2024-07-16 12:55:45 -05:00
spago.lock fix: deps 2024-07-16 12:56:14 -05:00
spago.yaml chore: prepare v0.0.3 2024-07-17 12:08:07 -05:00

purescript-threading

Concurrency primitives inspired by python's multithreading and rust, allowing for predictable concurrency with Aff

Use Cases

  • Create a background worker thread
  • Communicate between threads (Threading.Channel)
  • Limit access to a resource (eg. a database connection pool, file handle) to 1 concurrent actor (Threading.RWLock, Threading.Mutex)
  • Coordinate concurrent threads, waiting for some common goal to be reached before continuing (Threading.Barrier)
  • Create a pool of concurrent "threads" that can pull work from a queue, with graceful exiting and error handling
  • Remotely kill a thread, or non-blockingly ask if it has exited

Installing

spago install threading