modify method
Future<void>
modify({
- required FdHandler listener,
- Set<
EpollFlag> ? events, - FdReadyCallback? isolateCallback,
- ValueCallback? callback,
Implementation
Future<void> modify({
required FdHandler listener,
Set<EpollFlag>? events,
FdReadyCallback? isolateCallback,
ValueCallback? callback,
}) async {
assert(_alive);
assert(_handlers.containsKey(listener));
final seq = Capability();
await _sendCmd(_ModCmd(
seq: seq,
listenerIdentity: listener._id,
flags: events,
callback: isolateCallback,
));
(listener as _FdHandlerImpl).callback = callback ?? listener.callback;
}