Re: [elixir-core:10725] Re: Wrapper for receive block.

2022-01-24 Thread José Valim
Another idea is to generate a "make_ref()" when you subscribe, and then you can uniquely match on this reference on await, without requiring explicit patterns. However, even if the above is not possible and the await(pattern) is the only solution, I don't think this is an approach we want to

Re: [elixir-core:10725] Re: Wrapper for receive block.

2022-01-24 Thread Ben Wilson
For that purpose, I feel like: {:ok, %{pattern: [match, here]}} = Foo.await(item) would work right? Can you help me understand why the patterns themselves need to be passed to your `await` function? On Monday, January 24, 2022 at 12:09:56 PM UTC-5 mateus...@swmansion.com wrote: > Hi there, >