MCPcopy Create free account
hub / github.com/CPChain/chain / Sleep

Method Sleep

api/rpc/server_test.go:51–56  ·  view source on GitHub ↗
(ctx context.Context, duration time.Duration)

Source from the content-addressed store, hash-verified

49}
50
51func (s *Service) Sleep(ctx context.Context, duration time.Duration) {
52 select {
53 case <-time.After(duration):
54 case <-ctx.Done():
55 }
56}
57
58func (s *Service) Rets() (string, error) {
59 return "", nil

Callers 15

loopMethod · 0.80
assertSectionsMethod · 0.80
assertBlocksMethod · 0.80
testSchedulerFunction · 0.80
TestWatchNewFileFunction · 0.80
TestWatchNoDirFunction · 0.80
waitForAccountsFunction · 0.80
TestTimedUnlockFunction · 0.80
TestOverrideUnlockFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected