mirror of
https://github.com/janet-lang/janet
synced 2025-05-06 01:14:13 +00:00
commit
f7ca6deeb0
@ -3148,8 +3148,10 @@
|
||||
(defn net/close "Alias for ev/close." [stream] (ev/close stream))
|
||||
|
||||
(defn ev/call
|
||||
"Call a function asynchronously. Returns a fiber that is scheduled to "
|
||||
"run the function."
|
||||
```
|
||||
Call a function asynchronously.
|
||||
Returns a fiber that is scheduled to run the function.
|
||||
```
|
||||
[f & args]
|
||||
(ev/go (fiber/new (fn [&] (f ;args)) :tp)))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user