libp2p
Preparing search index...
@libp2p/utils
close
safelyCloseStream
Function safelyCloseStream
safelyCloseStream
(
stream
?:
Stream
,
options
?:
AbortOptions
)
:
Promise
<
void
>
Close the passed stream, falling back to aborting the stream if closing cleanly fails.
Parameters
Optional
stream
:
Stream
Optional
options
:
AbortOptions
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
libp2p
Loading...
Close the passed stream, falling back to aborting the stream if closing cleanly fails.