Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

Commit aaa9477

Browse files
committed
Support aborting in the federated client.
1 parent d2c63db commit aaa9477

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/triple-pattern-fragments/federated/FederatedFragmentsClient.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ FederatedFragmentsClient.prototype.getFragmentByPattern = function (pattern) {
4646
return new CompoundFragment(fragments, this._options);
4747
};
4848

49+
/** Aborts all requests. */
50+
FederatedFragmentsClient.prototype.abortAll = function () {
51+
this._clients.forEach(function (client) { client.abortAll(); });
52+
};
53+
4954
// Creates a new compound Triple Pattern Fragment
5055
function CompoundFragment(fragments, options) {
5156
if (!(this instanceof CompoundFragment))

0 commit comments

Comments
 (0)