es5-async
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Deps

es5 promise

Use

test file

const { async } = require('..')
describe('test',()=>{
  it('normal',async()=>{
    let x = await async(function(await,data,finish){
      await(()=>Promise.resolve(7))
      await(()=>new Promise((rl)=>setTimeout(rl,2000,55555)))
      await(6666)
      await(a=>console.log(a))
      data.x = await(()=>Promise.resolve(77777))
      await(()=>console.log(data))
      await(()=>finish('finsh'))
    })
    console.log('2','5555555555',x)
    await 88
  })
})

Readme

Keywords

none

Package Sidebar

Install

npm i es5-async

Weekly Downloads

2

Version

0.0.2

License

ISC

Last publish

Collaborators

  • shynome