char/avril
(wip) why'd you have to go and make things so complicaaaaated?
git clone https://git.t4t.associates/char/avril
b2fc926
main
1import type { NativeOptions , ProcessBytes , ProcessStatusValue , SpawnInfo , SyncOutput } from "./types.ts" ; 2import type { FileReply } from "../../file/src/errors.ts" ; 3 4declare module"ext:core/ops" { 5export function op_process_cancel_read ( args :[ id :number , fd :number ]) :FileReply < null >; 6export function op_process_end ( args :[ id :number , fd :number ]) :Promise < FileReply < null >>; 7export function op_process_keepalive ( args :[ id :number , epoch :number ]) :Promise < FileReply < null >>; 8export function op_process_kill ( args :[ id :number , signal :string ]) :FileReply < boolean >; 9export function op_process_read ( args :[ id :number , fd :number ]) :Promise < FileReply < ProcessBytes | null >>; 10export function op_process_ref ( args :[ id :number , referenced :boolean ]) :FileReply < number >; 11export function op_process_release ( id :number ) :null ; 12export function op_process_resize ( args :[ id :number , columns :number , rows :number ]) :FileReply < null >; 13export function op_process_run_sync ( 14args :[ options :NativeOptions , input :ProcessBytes | null ], 15) :FileReply < SyncOutput >; 16export function op_process_spawn ( options :NativeOptions ) :FileReply < SpawnInfo >; 17export function op_process_stop ( args :[ id :number , reason :string ]) :FileReply < null >; 18export function op_process_wait ( args :[ id :number , completed :boolean ]) :Promise < FileReply < ProcessStatusValue >>; 19export function op_process_write ( args :[ id :number , fd :number , bytes :ProcessBytes ]) :Promise < FileReply < null >>; 20export function op_signal_bind ( name :string ) :FileReply < null >; 21export function op_signal_poll () :Promise < FileReply < string | null >>; 22export function op_signal_unbind ( name :string ) :null ; 23}