This would be the first non-fd based async source. It would need a new event kind (TIMER) and a method on the io context to set a timer. It's an acceptable constraint that there may only be one timer at a time per connection, so allocation can be avoided. The timer is backed by the mio timeout, so the timeout would be the smallest timer set on any connection.
this is useful to implement long-polling, e.g. do a request that waits for x amount of time to see if any events come in and then either return the events or in case of timeout an empty result.
This would be the first non-fd based async source. It would need a new event kind (TIMER) and a method on the io context to set a timer. It's an acceptable constraint that there may only be one timer at a time per connection, so allocation can be avoided. The timer is backed by the mio timeout, so the timeout would be the smallest timer set on any connection.