Preparing search index...
The search index is not available
libp2p
libp2p
@libp2p/utils
close
safelyCloseStream
Function safelyCloseStream
safely
Close
Stream
(
stream
?
,
options
?
)
:
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
Private
Inherited
External
Theme
OS
Light
Dark
libp2p
Loading...
Close the passed stream, falling back to aborting the stream if closing cleanly fails.