yeast/units/sleep/sleep.go

16 lines
228 B
Go
Raw Normal View History

2014-08-24 19:56:55 +07:00
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
}