mirror of
				https://github.com/unanmed/HumanBreak.git
				synced 2025-10-31 12:12:58 +08:00 
			
		
		
		
	
		
			
				
	
	
	
		
			319 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			319 B
		
	
	
	
	
	
	
	
@motajs/common 函数
sleep
function sleep(time: number): Promise<void>;
描述
创建一个等待指定时长的异步。
参数
- time: 等待时长
使用示例
async function myFunc() {
    await sleep(1000);
    // 这后面的内容会在 1 秒之后执行
}