dsl-toolkit/dsl-toolkit

View on GitHub
packages/dsl-framework/src/core/detached-executor.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
/* eslint-disable brace-style */
/* eslint-disable block-spacing */
module.exports = exports = (data, callback) => {
  let timeoutSate = null
  if (callback && typeof callback === 'function') {
    timeoutSate = setTimeout(callback, 0, 2, data)}
  return timeoutSate}