mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
[Bun.js] Rename Bun.sleep -> Bun.sleepSync
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user