async_await详解(彻底摆脱回调地狱)

5.1万
170
2018-02-05 22:32:03
407
175
1490
70
es2017中十分好用async/await语法糖, 相较于promise进行了更一步的封装. 课程大纲: 1. 编写第一个 async/await 函数 2. 将 async 函数用在 promise chain 中 3. 把任意类型的函数转成 async 风格 4. 处理 async 函数中的错误 5. 处理多个 await 操作的并行串行 6. 使用 Promise.all() 并行 7. 结合 await 和任意兼容 .then() 的代码 8. 在 for 循环中正确的使用 await
全栈视频搬运工
视频选集
(1/8)
01-write-async-await-function 编写第一个async-await函数
01:37
02-use-async-function-as-promise 将async函数用在promise chain中
01:14
03-convert-any-function-to-async 把任意类型的函数转成async风格
02:35
04-handling-errors-for-async 处理async函数中的错误
02:59
05-await-multiple-promise-concurrently 正确处理多个await操作的并行串行
03:39
06-await-multiple-promise-with-all 使用Promise.all()让多个await操作并行
01:32
07-use-await-with-any-thenable 结合await和任意兼容.then()的代码
02:24
08-await-in-loops 在for循环中正确的使用await
02:20
客服
顶部
赛事库 课堂 2021拜年纪