feat: Add core trading modules for risk management, backtesting, and execution algorithms, alongside a new ML transparency widget and related frontend dependencies.
Some checks are pending
Documentation / build-docs (push) Waiting to run
Tests / test (macos-latest, 3.11) (push) Waiting to run
Tests / test (macos-latest, 3.12) (push) Waiting to run
Tests / test (macos-latest, 3.13) (push) Waiting to run
Tests / test (macos-latest, 3.14) (push) Waiting to run
Tests / test (ubuntu-latest, 3.11) (push) Waiting to run
Tests / test (ubuntu-latest, 3.12) (push) Waiting to run
Tests / test (ubuntu-latest, 3.13) (push) Waiting to run
Tests / test (ubuntu-latest, 3.14) (push) Waiting to run
Some checks are pending
Documentation / build-docs (push) Waiting to run
Tests / test (macos-latest, 3.11) (push) Waiting to run
Tests / test (macos-latest, 3.12) (push) Waiting to run
Tests / test (macos-latest, 3.13) (push) Waiting to run
Tests / test (macos-latest, 3.14) (push) Waiting to run
Tests / test (ubuntu-latest, 3.11) (push) Waiting to run
Tests / test (ubuntu-latest, 3.12) (push) Waiting to run
Tests / test (ubuntu-latest, 3.13) (push) Waiting to run
Tests / test (ubuntu-latest, 3.14) (push) Waiting to run
This commit is contained in:
37
frontend/node_modules/fastq/queue.js
generated
vendored
37
frontend/node_modules/fastq/queue.js
generated
vendored
@@ -53,7 +53,8 @@ function fastqueue (context, worker, _concurrency) {
|
||||
empty: noop,
|
||||
kill: kill,
|
||||
killAndDrain: killAndDrain,
|
||||
error: error
|
||||
error: error,
|
||||
abort: abort
|
||||
}
|
||||
|
||||
return self
|
||||
@@ -193,6 +194,40 @@ function fastqueue (context, worker, _concurrency) {
|
||||
self.drain = noop
|
||||
}
|
||||
|
||||
function abort () {
|
||||
var current = queueHead
|
||||
queueHead = null
|
||||
queueTail = null
|
||||
|
||||
while (current) {
|
||||
var next = current.next
|
||||
var callback = current.callback
|
||||
var errorHandler = current.errorHandler
|
||||
var val = current.value
|
||||
var context = current.context
|
||||
|
||||
// Reset the task state
|
||||
current.value = null
|
||||
current.callback = noop
|
||||
current.errorHandler = null
|
||||
|
||||
// Call error handler if present
|
||||
if (errorHandler) {
|
||||
errorHandler(new Error('abort'), val)
|
||||
}
|
||||
|
||||
// Call callback with error
|
||||
callback.call(context, new Error('abort'))
|
||||
|
||||
// Release the task back to the pool
|
||||
current.release(current)
|
||||
|
||||
current = next
|
||||
}
|
||||
|
||||
self.drain = noop
|
||||
}
|
||||
|
||||
function error (handler) {
|
||||
errorHandler = handler
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user