Readline.prototype.commit - Node documentation
method Readline.prototype.commit

Usage in Deno

import { Readline } from "node:readline/promises";
Readline.prototype.commit(): Promise<void>

The rl.commit() method sends all the pending actions to the associatedstream and clears the internal list of pending actions.

Return Type

Promise<void>