MCPcopy
hub / github.com/duke-git/lancet / ExampleDelay

Function ExampleDelay

function/function_example_test.go:71–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69}
70
71func ExampleDelay() {
72 var print = func(s string) {
73 fmt.Println(s)
74 }
75
76 Delay(2*time.Second, print, "hello")
77
78 // Output:
79 // hello
80}
81
82func ExampleDebounce() {
83 callCount := 0

Callers

nothing calls this directly

Calls 1

DelayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…