Psignal
Bun

property

dgram.SocketOptions.signal

signal?: AbortSignal

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