()
| 7 | ) |
| 8 | |
| 9 | func ExampleAfter() { |
| 10 | fn := After(2, func() { |
| 11 | fmt.Println("test") |
| 12 | }) |
| 13 | |
| 14 | fn() |
| 15 | fn() |
| 16 | |
| 17 | // Output: |
| 18 | // test |
| 19 | } |
| 20 | |
| 21 | func ExampleBefore() { |
| 22 | fn := Before(2, func() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…