Documentation ¶
Overview ¶
Package runutil provides helpers to advanced function scheduling control like repeat or retry.
It's very often the case when you need to excutes some code every fixed intervals or have it retried automatically. To make it reliably with proper timeout, you need to carefully arrange some boilerplate for this. Below function does it for you.
For repeat executes, use Repeat:
err := runutil.Repeat(10*time.Second, stopc, func() error { // ... })
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.