Executes the next function with the provided data.
Executes the provided callback function once, and returns a cleanup function.
A callback function to be executed once. - The callback function is expected to take one argument of type Data and have no return value.
Subscribe to receive data updates.
The callback function to be called when data is received.
It takes a single parameter, data, of type Data.
The callback function is expected to have a void return type.
void return type.
Represents a behavior subject.