mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
don't use refConcurrently and unrefConcurrently in tsfn
This commit is contained in:
@@ -1675,11 +1675,11 @@ pub const ThreadSafeFunction = struct {
|
||||
}
|
||||
|
||||
pub fn ref(this: *ThreadSafeFunction) void {
|
||||
this.poll_ref.refConcurrentlyFromEventLoop(this.event_loop);
|
||||
this.poll_ref.ref(this.event_loop.virtual_machine);
|
||||
}
|
||||
|
||||
pub fn unref(this: *ThreadSafeFunction) void {
|
||||
this.poll_ref.unrefConcurrentlyFromEventLoop(this.event_loop);
|
||||
this.poll_ref.unref(this.event_loop.virtual_machine);
|
||||
}
|
||||
|
||||
pub fn acquire(this: *ThreadSafeFunction) napi_status {
|
||||
|
||||
Reference in New Issue
Block a user