当前位置:网站首页>await后面的所有类型代码直接扔到微任务队列中,稍后执行
await后面的所有类型代码直接扔到微任务队列中,稍后执行
2022-07-18 01:20:00 【彤先森】
//await后面的所有类型代码直接扔到微任务队列中,稍后执行
关键点举例说明:
async function aa () {
let res = await tack1()
console.log('await后的代码') // await后面的所有类型代码直接扔到微任务队列中,稍后执行
}
await后面的代码会阻塞 ,fun2执行完毕后,后面的代码类似于传入then()中的回调
边栏推荐
猜你喜欢
随机推荐
Ch549/ch548 learning notes 2 - system clock
Through JMeter pressure measurement surging
CH549/CH548学习笔记3 - UART
【干货】MySQL底层架构设计,你了解多少?
[today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference
A long distance
数据处理Numpy的基本使用方法
Feedback learning
Identity server 4 uses openid connect to add user authentication (3)
The solution that Google browser chrome cannot be upgraded
JUC源码学习笔记2——AQS共享和Semaphore,CountDownLatch
哈希表相关知识
Project practice of JWT symmetric and asymmetric encryption
VOS中开启媒体转发功能后,计算几种常用编码所需占用的带宽量
Ch549/ch548 learning notes 3 - UART
HCIA -- OSPF experimental report
CH549/CH548学习笔记1 - 硬件设计
MySQL - 表字段的自增约束
基于二叉树的传球问题思考与推测
【单片机仿真项目】报警灯(proteus原理图+keil代码)