Skip to main content

WriteBackCallbackType

Type Alias WriteBackCallbackType 

Source
pub type WriteBackCallbackType = extern "C" fn(RefAny, RefAny, CallbackInfo) -> Update;
Expand description

Callback that runs when a thread receives a WriteBack message

This callback runs on the main UI thread and has access dir_to:

  • The thread’s original data
  • Data sent back from the background thread
  • Full CallbackInfo for DOM queries and UI updates