#timeout for standby methods

1 messages · Page 1 of 1 (latest)

vague spear
#

i think it'd be nice to be able to timeout streams, otherwise it'll just lock the thread and end up keeping the allocations right?

it could be done either with a timeout: Duration parameter (less likely for users to miss) or by implementing a Timed trait on the items at twilight_standby::future (not breaking), if you give me the up i can work on this

dire badge
twin hare
#

Yeah I used Tokio for timing out

#

But 😨

vague spear
#

its very easy to miss

#

and when you miss it its pretty bad

vague spear
#

also you probably dont want to silently timeout, you probably want to delete or disable the component, message or reaction