bidirectional communication

This commit is contained in:
vedhavyas committed 2019-08-19 21:25:01 -04:00
1 parent fbfa1a0c93
commit 3351f3eb4b
4 files changed
+13 -9

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ func main() {
init, done := make(chan bool), make(chan error)
go b.Run(init, done)
<-init
res, err := b.CallFunc("printWasm", &[]interface{}{"success call"})
res, err := b.CallFunc("printWasm", &[]interface{}{"Hello from Go"})
fmt.Println(res, err)
err = <-done
fmt.Println("wasm exited", err)