• Richard Musiol's avatar
    all: add support for synchronous callbacks to js/wasm · 6dd70fc5
    Richard Musiol authored
    With this change, callbacks returned by syscall/js.NewCallback
    get executed synchronously. This is necessary for the APIs of
    many JavaScript libraries.
    
    A callback triggered during a call from Go to JavaScript gets executed
    on the same goroutine. A callback triggered by JavaScript's event loop
    gets executed on an extra goroutine.
    
    Fixes #26045
    Fixes #27441
    
    Change-Id: I591b9e85ab851cef0c746c18eba95fb02ea9e85b
    Reviewed-on: https://go-review.googlesource.com/c/142004Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    Run-TryBot: Cherry Zhang <cherryyz@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    6dd70fc5
Name
Last commit
Last update
..
android Loading commit data...
arm Loading commit data...
cgo Loading commit data...
chrome/gophertool Loading commit data...
git Loading commit data...
ios Loading commit data...
linkcheck Loading commit data...
nacl Loading commit data...
sortac Loading commit data...
swig Loading commit data...
trace Loading commit data...
wasm Loading commit data...
benchcmp Loading commit data...
editors Loading commit data...