mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Make sure to share result of the future
This commit is contained in:
parent
a462b28ac9
commit
1da1659a89
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@
|
|||
(tfnc (lambda ()
|
||||
(mutex-lock! lock)
|
||||
(let ((result (thunk))) ;; TODO: Catch exceptions (?)
|
||||
(set-result! ftr result)
|
||||
(set-result! ftr (make-shared result))
|
||||
(set-done! ftr #t)
|
||||
(mutex-unlock! lock)
|
||||
)))
|
||||
|
|
Loading…
Add table
Reference in a new issue