Skip to content

Fsync

[<Interface>]
type Fsync =
    abstract member Invoke (fd: float, callback: NoParamCallback) : unit
    abstract member __promisify__ (fd: float) : Promise<unit>
AssemblyXantham.Fable.Node

Methods

abstract member Invoke (fd: float, callback: NoParamCallback) : unit

Request that all data for the open file descriptor is flushed to the storage device. The specific implementation is operating system and device specific. Refer to the POSIX fsync(2) documentation for more detail. No arguments other than a possible exception are given to the completion callback.

@since v0.1.96

abstract member __promisify__ (fd: float) : Promise<unit>

Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device.

Parameter
fdA file descriptor.