rangoo94/easen-tools

View on GitHub
packages/core/src/ImmediateResult.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
/**
 * It may be thrown while processing action,
 * to get out of the flow and immediately return a value.
 *
 * @class
 */
class ImmediateResult {
  /**
   * @param {*} value
   */
  constructor (value) {
    this.$immediateResult = true
    this.value = value
  }
}

module.exports = ImmediateResult