Re: [elixir-core:10429] Proposal: GenServer.reply_after

2021-09-02 Thread José Valim
Thanks. You could also send_after a message to yourself and then send it to the client. It is an extra step but it should be quite efficient too. On Thu, Sep 2, 2021 at 23:57 Khionu Sybiern wrote: > Maybe it could be moved to the client side of the API, but otherwise it > would be a lot of

Re: [elixir-core:10429] Proposal: GenServer.reply_after

2021-09-02 Thread Khionu Sybiern
Maybe it could be moved to the client side of the API, but otherwise it would be a lot of boilerplate. A point was raised on the Discord that this function could be a trap for people still getting used to idiomatic Elixir, and they proposed multiple other solutions, both in changing approach