When you get a SessionRequest, you shouldn't be forced to respond to it in the same update like you have to now. Users should be given a chance to take that request, do some processing (e.g. talk to an auth server), then reply with a response later.
Perhaps an impl Drop which panics, and a fn accept(self) / fn reject(self) which don't panic? So the user isn't allowed to just ignore the request, but they can store it and process it later. Linear types would help a lot here...
Originally raised by a user on Discord
When you get a
SessionRequest, you shouldn't be forced to respond to it in the same update like you have to now. Users should be given a chance to take that request, do some processing (e.g. talk to an auth server), then reply with a response later.Perhaps an
impl Dropwhich panics, and afn accept(self)/fn reject(self)which don't panic? So the user isn't allowed to just ignore the request, but they can store it and process it later. Linear types would help a lot here...Originally raised by a user on Discord