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

Function adder

testdata/wasmexport.go:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35var addOutput = make(chan int32)
36
37func adder() {
38 for {
39 a := <-addInputs
40 b := <-addInputs
41 time.Sleep(time.Millisecond)
42 addOutput <- a + b
43 }
44}
45
46//go:wasmimport tester callOutside
47func callOutside(a, b int32) int32

Callers 1

initFunction · 0.70

Calls 1

SleepMethod · 0.65

Tested by

no test coverage detected