MCPcopy Create free account
hub / github.com/koding/kite / Sleep

Function Sleep

kite_test.go:491–494  ·  view source on GitHub ↗

Sleeps for 2 seconds and returns true

(r *Request)

Source from the content-addressed store, hash-verified

489
490// Sleeps for 2 seconds and returns true
491func Sleep(r *Request) (interface{}, error) {
492 time.Sleep(time.Second * 2)
493 return true, nil
494}
495
496// Returns the result. Also tests reverse call.
497func Square(r *Request) (interface{}, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected