.TH TICKIT_LATER 3 .SH NAME tickit_later \- invoke a callback at the next round of IO events .SH SYNOPSIS .EX .B #include .sp .BI "typedef int " TickitCallbackFn "(Tickit *" t ", TickitEventflags " flags , .BI " void *" user ); .sp .BI "int tickit_later(Tickit *" t ", int " msec ", TickitBindFlags " flags , .BI " TickitCallbackFn *" fn ", void *" user ); .EE .sp Link with \fI\-ltickit\fP. .SH DESCRIPTION \fBtickit_later\fP() registers a callback function to be invoked by the toplevel event loop as it processes the next round of IO events. A registered callback will be invoked by a running call to \fBtickit_run\fP(3). The callback function will be invoked once, and then destroyed afterwards. .PP When invoked, the callback function is always passed both \fBTICKIT_EV_FIRE\fP and \fBTICKIT_EV_UNBIND\fP flags to its \fIflags\fP argument. If the callback had been registered with the \fBTICKIT_BIND_DESTROY\fP flag, then it will also be invoked with the \fBTICKIT_EV_DESTROY\fP flag if it has not yet been invoked by the time the toplevel instance is destroyed. .SH "RETURN VALUE" \fBtickit_later\fP() returns no value. .SH "SEE ALSO" .BR tickit_new_stdio (3), .BR tickit_timer_after_msec (3), .BR tickit (7)