Why not? I mean, it could be a code smell in some situations, but every time you do a GenServer.call you drop into a receive block to listen for the response.
BUT, you could just not reply in the API.handle_call callback and have your Worker reply using the GenServer.reply function. It wouldn’t block your API GenServer waiting for a response, and still allows for a timeout using the GenServer.call semantics.






















