@jahed/sparql-engine
Version:
SPARQL query engine for servers and web browsers.
16 lines • 393 B
JavaScript
// SPDX-License-Identifier: MIT
import { Consumable } from "./consumer.js";
/**
* A consumer that executes a simple action
*/
export default class ActionConsumer extends Consumable {
_action;
constructor(action) {
super();
this._action = action;
}
execute() {
return Promise.resolve(this._action());
}
}
//# sourceMappingURL=action-consumer.js.map