Use async nifs technique to avoid blocking the BEAM's schedulers #1
1 changed files with 1 additions and 0 deletions
|
@ -556,6 +556,7 @@ ASYNC_NIF_DECL(
|
||||||
memcpy(bin, raw_value.data, raw_value.size);
|
memcpy(bin, raw_value.data, raw_value.size);
|
||||||
cursor->close(cursor);
|
cursor->close(cursor);
|
||||||
ASYNC_NIF_REPLY(enif_make_tuple2(env, ATOM_OK, value));
|
ASYNC_NIF_REPLY(enif_make_tuple2(env, ATOM_OK, value));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cursor->close(cursor);
|
cursor->close(cursor);
|
||||||
|
|
Loading…
Reference in a new issue