• 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
..
asm.go Loading commit data...
obj.go Loading commit data...