MCPcopy
hub / github.com/tinygo-org/tinygo / goroutineExit

Function goroutineExit

testdata/wasmexport.go:60–67  ·  view source on GitHub ↗

Test for bug: https://github.com/tinygo-org/tinygo/issues/4874 go:wasmexport goroutineExit

()

Source from the content-addressed store, hash-verified

58//
59//go:wasmexport goroutineExit
60func goroutineExit() {
61 go func() {
62 time.Sleep(time.Second * 10)
63 println("goroutineExit: exiting goroutine")
64 }()
65 runtime.Gosched()
66 println("goroutineExit: exit")
67}

Callers

nothing calls this directly

Calls 1

SleepMethod · 0.65

Tested by

no test coverage detected