Skip to content

Commit b024192

Browse files
committed
Simplify code
Not sure if there was any purpose in having your version as it was, but this should simplify it.
1 parent 369e69f commit b024192

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ Goroutines are fully supported by GopherJS. The only restriction is that you nee
9494

9595
```go
9696
js.Global.Get("myButton").Call("addEventListener", "click", func() {
97-
go func() {
98-
someBlockingFunction()
99-
}()
97+
go someBlockingFunction()
10098
})
10199
```
102100

0 commit comments

Comments
 (0)