ConsumeSerializableLifecycleEffect
A Composable effect that consumes serializable objects of type T at a specific lifecycle event.
This function is similar to CatchSerializableLifecycleEffect but automatically returns true after the catcher function is called, indicating that the object was successfully handled.
Parameters
The type of serializable object to consume
The unique identifier for this effect, used to match the thrown object
The lifecycle event at which to consume the object, defaults to Lifecycle.Event.ON_START
A function that processes the caught object without needing to return a handling status
A Composable effect that consumes serializable objects of type T at a specific lifecycle event.
This overload automatically uses the qualified name of type T as the key and is similar to CatchSerializableLifecycleEffect but automatically returns true after the catcher function is called, indicating that the object was successfully handled.
Parameters
The type of serializable object to consume
The lifecycle event at which to consume the object, defaults to Lifecycle.Event.ON_START
A function that processes the caught object without needing to return a handling status