Re: Guile fibers return values

2020-01-04 Thread John Cowan
On Sat, Jan 4, 2020 at 5:50 PM Zelphir Kaltstahl wrote: I have questions regarding the usage of the fibers library. It seems, > that I cannot find any way to get a computation result back from a > fiber. I also cannot find anything about how to get a value back from a > fiber, except for channels

Re: Guile fibers return values

2020-01-04 Thread Zelphir Kaltstahl
Hello Guile Users, so I figured out an example for using channels, but I am not sure, if that is the only way to get results from a fiber: 8<8< (use-modules (fibers) (fibers channels) (ice-9 match)) ;; Define a procedure to run in a fiber. (define fiber1-proc (lambda (in-chan ou

Guile fibers return values

2020-01-04 Thread Zelphir Kaltstahl
Hello Guile users! I have questions regarding the usage of the fibers library. It seems, that I cannot find any way to get a computation result back from a fiber. I also cannot find anything about how to get a value back from a fiber, except for channels. The examples include one example using the