Skip to content

Instantly share code, notes, and snippets.

View mohaalak's full-sized avatar
💭
λ

Mohammad Hadi Aliakbar mohaalak

💭
λ
View GitHub Profile
@mohaalak
mohaalak / AsyncSockets.fs
Created February 11, 2021 14:36 — forked from t0yv0/AsyncSockets.fs
Asynchronous socket programming with F# async.
open System.Net.Sockets
type A = System.Net.Sockets.SocketAsyncEventArgs
type B = System.ArraySegment<byte>
exception SocketIssue of SocketError with
override this.ToString() =
string this.Data0
/// Wraps the Socket.xxxAsync logic into F# async logic.