Skip to content
Snippets Groups Projects
Commit 3d26c913 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] API: provide an accessor to BlockchainService flow control

parent 7d66c28e
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,11 @@ const fifo = async.queue(function (task, callback) { ...@@ -9,6 +9,11 @@ const fifo = async.queue(function (task, callback) {
module.exports = function AbstractService () { module.exports = function AbstractService () {
/**
* Gets the queue object for advanced flow control.
*/
this.getFIFO = () => fifo;
/** /**
* Adds a promise to a FIFO stack of promises, so the given promise will be executed against a shared FIFO stack. * Adds a promise to a FIFO stack of promises, so the given promise will be executed against a shared FIFO stack.
* @param p * @param p
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment