es5-async
v0.0.2
Published
`es5` `promise` # Use test file ```javascript const { async } = require('..') describe('test',()=>{ it('normal',async()=>{ let x = await async(function(await,data,finish){ await(()=>Promise.resolve(7)) await(()=>new Promise((rl)
Downloads
3
Readme
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
})
})