Skip to content

Commit 12bd633

Browse files
add declaration for wg in README
1 parent 075988a commit 12bd633

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/ports/go_port/source/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ func main() {
5454

5555
// Calling async function in typescript
5656
var sum int
57+
var wg sync.WaitGroup
58+
wg.Add(1)
5759
_, err := metacall.Await("sum",
5860
func(value interface{}, ctx interface{}) interface{} {
5961
log.Println("from resolve callback ", value)

0 commit comments

Comments
 (0)