Psignal
Bun

property

net.ListenOptions.signal

signal?: AbortSignal

When provided the corresponding AbortController can be used to cancel an asynchronous action.