Skip to content

Close

[<Interface>]
type Close =
    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

Closes the file descriptor. No arguments other than a possible exception are given to the completion callback.

Calling fs.close() on any file descriptor (fd) that is currently in use through any other fs operation may lead to undefined behavior.

See the POSIX close(2) documentation for more detail.

@since v0.0.2

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

Asynchronous close(2) - close a file descriptor.

Parameter
fdA file descriptor.