---
name: "tickit_later"
section: "3"
platform: "linux"
package: "libtickit-dev"
version: "0.2-5"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/tickit_later"
---

# tickit\_later(3)

invoke a callback at the next round of IO events

## NAME

tickit\_later - invoke a callback at the next round of IO events

## SYNOPSIS

```
#include <tickit.h>

typedef int TickitCallbackFn(Tickit *t, TickitEventflags flags,
    void *user);

int tickit_later(Tickit *t, int msec, TickitBindFlags flags,
    TickitCallbackFn *fn, void *user);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_later**() 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 [**tickit\_run**(3)](/tickit_run/3.md). The callback function will be invoked once, and then destroyed afterwards.

When invoked, the callback function is always passed both **TICKIT\_EV\_FIRE** and **TICKIT\_EV\_UNBIND** flags to its *flags* argument. If the callback had been registered with the **TICKIT\_BIND\_DESTROY** flag, then it will also be invoked with the **TICKIT\_EV\_DESTROY** flag if it has not yet been invoked by the time the toplevel instance is destroyed.

## RETURN VALUE

**tickit\_later**() returns no value.

## SEE ALSO

[**tickit\_new\_stdio**(3)](/tickit_new_stdio/3.md), [**tickit\_timer\_after\_msec**(3)](/tickit_timer_after_msec/3.md), [**tickit**(7)](/tickit/7.md)
