[erlang-questions] enif_send backpressure
Tue May 30 03:36:06 CEST 2017
When you send a message to the process you could increment a counter, and
when the process finishes it can call a NIF to decrement the counter.
Resources might be handy if you have many counters to keep track of.
On Mon, May 29, 2017 at 5:06 PM Roger Lipscombe <roger@REDACTED>
> On 29 May 2017 at 13:13, Lukas Larsson <lukas@REDACTED> wrote:
>> It is possible to get that information in the current implementation, but
>> it may very well not be possible in future implementations. We don't want
>> to create an API that exposes an implementation detail that may very well
>> change in the future.
> That's fair.
>> If you need that type of back pressure, you should implement your own
>> synchronization mechanism.
> Any suggestions for things I should take a look at?
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions