Register an `unsubscribe_fn` when initializing the TrioSubscriptionAPI. `unsubscribe_fn` is called when subscription is unsubscribed.
SubscriptionAPI
And `TrioSubscriptionAPI`, to make subscription io-agnostic.