Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Accept

func Accept(cancellationToken: CancellationToken = default) -> Task<Result<Socket, SocketError>>

Declaring type: Socket
Module: System.Networking.Sockets
Assembly: System.Networking.dll
Source file: Socket.rvn

Requests cancellation cooperatively; the task is cancelled after provider acknowledgement.

Parameters

Name Type Description
cancellationToken CancellationToken

Return value

Task<Result<Socket, SocketError>>