Function yrs::yobserve_deep
source ยท #[no_mangle]
pub unsafe extern "C" fn yobserve_deep(
ytype: *mut Branch,
state: *mut c_void,
cb: extern "C" fn(_: *mut c_void, _: u32, _: *const YEvent)
) -> *mut Subscription
Expand description
Subscribes a given callback function cb
to changes made by this shared type instance as well
as all nested shared types living within it. Callbacks are triggered whenever a
ytransaction_commit
is called.
Returns a subscription ID which can be then used to unsubscribe this callback by using
yunobserve
function.