Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package sleep
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"code.google.com/p/go.net/context"
|
||||
)
|
||||
|
||||
func Call(ctx context.Context) context.Context {
|
||||
fmt.Println("Going into sleep")
|
||||
time.Sleep(5 * time.Second)
|
||||
fmt.Println("Woke up")
|
||||
return ctx
|
||||
}
|
||||
Reference in New Issue
Block a user