From 254891e7762945e9713f7571f5dd4a8c21e9811c Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Tue, 2 Apr 2013 09:37:49 -0400 Subject: [PATCH] Bumping reductions manually will not be supported in future releases of the BEAM and has dubious value anyway. Remove that and ignore queue depth for now. --- src/async_nif.hrl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/async_nif.hrl b/src/async_nif.hrl index 8eda423..4d14a3a 100644 --- a/src/async_nif.hrl +++ b/src/async_nif.hrl @@ -25,8 +25,7 @@ begin NIFRef = erlang:make_ref(), case erlang:apply(Fun, [NIFRef|Args]) of - {ok, {enqueued, QDepth}} -> - [erlang:bump_reductions(10 * QDepth) || is_integer(QDepth), QDepth > 100], + {ok, {enqueued, _QDepth}} -> receive {NIFRef, {error, shutdown}=Error} -> %% Work unit was queued, but not executed.