UNPKG

flownote

Version:

FlowNote lets developers create, organize, and reason about event-oriented applications with a simple flow-based language.

13 lines (10 loc) 460 B
import Channel from '../channel' class StandardChannel extends Channel { constructor (application, id, name, to, accepts = [], retry, retryDelay, actions = []) { const gotoNode = application.requireAction('gotoNode', function gotoNode () { this.dispatch('StandardNode') }) super(application, id, name, to, [ 'StandardChannel' ].concat(accepts), retry, retryDelay, actions.concat([ gotoNode ])) } } export { StandardChannel as default }