Skip to content
Ram Raghunathan edited this page May 24, 2017 · 7 revisions

Structure

Previously the scheduler was included in the basis and available through MLton.Parallel.ForkJoin. This is no longer the case. Schedulers are now independent entities that must be explicitly included into a project’s MLB file. The available schedulers are here.

To include one, for example the spoonhower scheduler, add $(SML_LIB)/basis/schedulers/spoonhower.mlb to your MLB file. The Spoonhower scheduler is then available to you through the ForkJoin structure that exposes a function fork: (unit → 'a) * (unit → 'b) → 'a * 'b. A scheduler may expose additional structures.

Clone this wiki locally