Update README.md

This commit is contained in:
Josh Baker 2017-11-02 07:02:42 -07:00 committed by GitHub
parent fee1e97043
commit 71b91660ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ events.Tick = func() (delay time.Duration, action Action){
A connection can be woken up using the `wake` function that is made available through the `Serving` event. This is useful for when you need to offload an operation to a background goroutine and then later notify the event loop that it's time to send some data. A connection can be woken up using the `wake` function that is made available through the `Serving` event. This is useful for when you need to offload an operation to a background goroutine and then later notify the event loop that it's time to send some data.
Example echo server that when it encounters the line "exec" it waits 5 seconds before responding. Example echo server that when encountering the line "exec" it waits 5 seconds before responding.
```go ```go
var wake func(id int) bool var wake func(id int) bool