Skip to content

yang-guo/threads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Starts a threadpool and runs functions in the pool

NOTE - this is for demonstration only and is not threadsafe. Be warned!

Documentation

All functions are under the namespace .threads

There is only one function

  • async[job;callback] runs the job and returns data to the callback

The parameters are

  • job(parselist) parse list of expression to evaluate
  • callback(fn[x]) takes in result of job

Examples

.threads.async[((*);5;3);{xx::x}] //Result is 15

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published