You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I execute this code, I get the following output:
deferred
/home/jonhall/src/test/test.js:1737
r();
^
TypeError: r is not a function
at $runScheduled (/home/jonhall/src/test/test.js:1737:13)
at $schedule (/home/jonhall/src/test/test.js:1761:9)
at queueEntry (/home/jonhall/src/test/test.js:1834:9)
at $send (/home/jonhall/src/test/test.js:1793:9)
at $b (/home/jonhall/src/test/test.js:15011:9)
at $b (/home/jonhall/src/test/test.js:14318:9)
at /home/jonhall/src/test/test.js:68:74
at FSReqCallback.wrapper [as oncomplete] (node:fs:816:5)
Hypothesis: The rule that blocking code in a callback must be executed in a goroutine should apply to deferred functions within callbacks as well. If I move the fmt.Println call to a goroutine within the deferred function, the error goes away.
The text was updated successfully, but these errors were encountered:
Reproduction case:
main.inc.js
:main.go
:When I execute this code, I get the following output:
Hypothesis: The rule that blocking code in a callback must be executed in a goroutine should apply to deferred functions within callbacks as well. If I move the
fmt.Println
call to a goroutine within the deferred function, the error goes away.The text was updated successfully, but these errors were encountered: