Perhaps you have a nullary function that you want called
when the user clicks a button, but the toolkit.button
function wants a unary function that has a completion callback
so that the button knows when to pop back up again. In this
situation you might wrap your function with a call to
toolkit.withTimeout
.
Unary function (taking one function as
an argument) that simply calls fn
immediately then
calls its argument again after 200ms.
function
Nullary function to wrap.