Hi, with the simplfied lifetime changes in 0.8.0. ...
# kotlinx-rpc
a
Hi, with the simplfied lifetime changes in 0.8.0. Can there be a way to detect when a service is closed/canceled? Reason for asking is that I've added dependency injection for my services and I'm manually handling Create/Destroy of Scopes. I'm just trying to figure out what next step should be, thinking of moving scope to be connection based instead or remove them completely.
a
Hi! No, service now is only an endpoint (or request proxy), it doesn't have a lifetime You can add ping method with a flow, that will indicate availability
a
Okay, thank you!