8.10
8 RRLL: Futures
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.
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.