Skip to content

add Promise support to wait method #96

@DinisCruz

Description

@DinisCruz

wait should return a Promise

for example like this

Number::wait = (callback)->  
  new Promise (resolve)=>    
    @.invoke_After ->      
      resolve()
      callback() if callback

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions