flownote
Version:
FlowNote lets developers create, organize, and reason about event-oriented applications with a simple flow-based language.
13 lines (10 loc) • 455 B
JavaScript
import Channel from '../channel'
class RetryChannel extends Channel {
constructor (application, id, name, to, accepts = [], retry, retryDelay, actions = []) {
const retryNode = application.requireAction('retryNode', function retryNode () {
this.dispatch('RetryChannel')
})
super(application, id, name, to, [ 'RetryChannel' ].concat(accepts), retry, retryDelay, actions.concat([ retryNode ]))
}
}
export { RetryChannel as default }