#857 net.server: API for watching an arbitrary file descriptor

Reporter Zash
Owner Nobody
Created
Updated
Stars ★ (1)  
Tags
  • Status-New
  • Type-Enhancement
  • Priority-Medium
  1. Zash on

    In cases where we want to keep track of events from other things that communicate via 'readyness' of an FD, not having to wrap this in a socket-like API would be helpful. Proposed API server.watchfd(fd : number, onreadable : callback, onwritable : callback) -> handle object The presence of either callback would be used to determine what events to watch for.

New comment