Skip to content

add Promise support to wait method #96

Description

@DinisCruz

wait should return a Promise

for example like this

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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