lv_async.h

Typedefs

typedef void (*lv_async_cb_t)(void*)

Type for async callback.

Functions

lv_result_t lv_async_call(lv_async_cb_t async_xcb, void *user_data)

Call an asynchronous function the next time lv_timer_handler() is run. This function is likely to return before the call actually happens!

Parameters:
  • async_xcb -- a callback which is the task itself. (the 'x' in the argument name indicates that it's not a fully generic function because it not follows the func_name(object, callback, ...) convention)

  • user_data -- custom parameter

lv_result_t lv_async_call_cancel(lv_async_cb_t async_xcb, void *user_data)

Cancel an asynchronous function call

Parameters:
  • async_xcb -- a callback which is the task itself.

  • user_data -- custom parameter