Add fibers-promise-reset
This commit is contained in:
parent
d53b91dd91
commit
38e5282546
1 changed files with 5 additions and 0 deletions
|
|
@ -60,6 +60,7 @@
|
||||||
|
|
||||||
fibers-delay
|
fibers-delay
|
||||||
fibers-force
|
fibers-force
|
||||||
|
fibers-promise-reset
|
||||||
|
|
||||||
fibers-batch-for-each
|
fibers-batch-for-each
|
||||||
fibers-for-each
|
fibers-for-each
|
||||||
|
|
@ -797,6 +798,10 @@ If already in the worker thread, call PROC immediately."
|
||||||
(raise-exception res)
|
(raise-exception res)
|
||||||
(apply values res))))))
|
(apply values res))))))
|
||||||
|
|
||||||
|
(define (fibers-promise-reset fp)
|
||||||
|
(atomic-box-set! (fibers-promise-values-box fp)
|
||||||
|
#f))
|
||||||
|
|
||||||
(define (fibers-batch-for-each proc batch-size . lists)
|
(define (fibers-batch-for-each proc batch-size . lists)
|
||||||
;; Like split-at, but don't care about the order of the resulting lists, and
|
;; Like split-at, but don't care about the order of the resulting lists, and
|
||||||
;; don't error if the list is shorter than i elements
|
;; don't error if the list is shorter than i elements
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue