On this page:
futures-count
run-futurized
8.10

8 RRLL: Futures

Dominik Pantůček <dominik.pantucek@trustica.cz>

Racket Rogue-Like Library: Evenly Futurized Algorithms

Simple helpers for evenly futurizing algorithms.

 (require rrll/futures) package: rrll-futures

This module provides a simple helper to evenly futurize generic loop-like algorithms.

value

futures-count : (parameter/c fixnum?)

Specifies the maximum number of future slices generated by the run-futurized syntax.

syntax

(run-futurized ((start start-all) (end end-all) granularity) body ...)

 
  start-all : fixnum?
  end-all : fixnum?
Evaluates the body ... expressions in (futures-count) futures with evenly distributed start/end ranges where each range is a multiple of given granularity.