Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Looper ¶
type Looper struct {
// contains filtered or unexported fields
}
Example ¶
package main import ( "fmt" "time" "github.com/donutloop/toolkit/loop" ) func main() { loop.NewLooper(1*time.Second, func() error { // do after one second things return nil }) // error and stop handling is missing for simplicity fmt.Println("successfully") }
Output: successfully
type RecoverError ¶
type RecoverError struct { Err interface{} Stack []byte }
func (*RecoverError) Error ¶
func (e *RecoverError) Error() string
Click to show internal directories.
Click to hide internal directories.