Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow functions beside classes #24

@zaiste

Description

@zaiste

Long running jobs could be also defined as functions. It needs to be analyzed how to plug in .log and .progress helpers in that case.

function isClass(func) {
  return typeof func === 'function' 
    && /^class\s/.test(Function.prototype.toString.call(func));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions