# GenServer processing

**URL:** <https://forum.elixirforum.com/t/genserver-processing/15691>\
**Category:** Questions\
**Tags:** api, phoenix, http, maru, genserver\
**Created:** [August 8, 2018, 12:21pm UTC](https://forum.elixirforum.com/t/genserver-processing/15691 "2018-08-08T12:21:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![voughtdq](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/voughtdq/32/9633_2.png) [@voughtdq](https://forum.elixirforum.com/u/voughtdq)\
**Post date:** [August 8, 2018, 12:29pm UTC](https://forum.elixirforum.com/t/genserver-processing/15691/2 "2018-08-08T12:29:32Z")

</div>

You could do something like

```elixir
def handle_call(msg, from, state) do
  spawn(fn -> 
    reply = do_stuff_with_message(msg)
    GenServer.reply(from, reply)
  end)
  {:noreply, state}
end

```

---

_[View the full topic](https://forum.elixirforum.com/t/genserver-processing/15691)._
