flowGraphAsyncExecutionBlock.js 730 B

12345678910111213141516171819202122
  1. import { FlowGraphExecutionBlock } from "./flowGraphExecutionBlock.js";
  2. /**
  3. * An async execution block can start tasks that will be executed asynchronously.
  4. * It should also be responsible for clearing it in _cancelPendingTasks.
  5. * @experimental
  6. */
  7. export class FlowGraphAsyncExecutionBlock extends FlowGraphExecutionBlock {
  8. constructor(config) {
  9. super(config);
  10. this.out = this._registerSignalOutput("out");
  11. this.done = this._registerSignalOutput("done");
  12. }
  13. /**
  14. * @internal
  15. * @param context
  16. */
  17. _startPendingTasks(context) {
  18. this._preparePendingTasks(context);
  19. context._addPendingBlock(this);
  20. }
  21. }
  22. //# sourceMappingURL=flowGraphAsyncExecutionBlock.js.map