mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-09 18:10:29 +00:00
Merge latest PR #1527 into 2.0.0-beta.2
This commit is contained in:
commit
dae13dec01
30 files changed
+1444
-194
No files matched your search
@@ -289,3 +289,8 @@ func callExportedFunction(fn func(goja.FunctionCall) goja.Value, args ...goja.Va
|
||||
Arguments: args,
|
||||
}), nil
|
||||
}
|
||||
|
||||
// Post queues a notification without waiting for its callback or returned promise.
|
||||
func (e *Engine) Post(fn func(*goja.Runtime)) bool {
|
||||
return e.loop.RunOnLoop(fn)
|
||||
}
|
||||
Reference in new issue
Block a user