2020-06-21 09:29:44 -04:00
|
|
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
|
|
import { sendSync, sendAsync } from "../dispatch_json.ts";
|
|
|
|
|
2020-06-26 08:36:35 -04:00
|
|
|
export function fdatasyncSync(rid: number): void {
|
|
|
|
sendSync("op_fdatasync", { rid });
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function fdatasync(rid: number): Promise<void> {
|
|
|
|
await sendAsync("op_fdatasync", { rid });
|
|
|
|
}
|
|
|
|
|
2020-06-21 09:29:44 -04:00
|
|
|
export function fsyncSync(rid: number): void {
|
|
|
|
sendSync("op_fsync", { rid });
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function fsync(rid: number): Promise<void> {
|
|
|
|
await sendAsync("op_fsync", { rid });
|
|
|
|
}
|