[Bun.js] Rename Bun.sleep -> Bun.sleepSync

This commit is contained in:
Jarred Sumner
2021-11-03 02:04:21 -07:00
parent 59bdb62966
commit 92a7849e98

View File

@@ -455,7 +455,7 @@ pub const Bun = struct {
}
}
pub fn sleep(
pub fn sleepSync(
this: void,
ctx: js.JSContextRef,
function: js.JSObjectRef,
@@ -509,8 +509,8 @@ pub const Bun = struct {
.rfn = Router.match,
.ts = Router.match_type_definition,
},
.sleep = .{
.rfn = sleep,
.sleepSync = .{
.rfn = sleepSync,
},
.fetch = .{
.rfn = Fetch.call,