ReadFileOptions class

Options which can be set when using {@linkcode Deno.readFile} or {@linkcode Deno.readFileSync}.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

ReadFileOptions({AbortSignal? signal})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signal AbortSignal?

Available on ReadFileOptions, provided by the ReadFileOptions$Typings extension

An abort signal to allow cancellation of the file read operation. If the signal becomes aborted the readFile operation will be stopped and the promise returned will be rejected with an AbortError.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited