Created
January 9, 2018 08:53
-
-
Save wklm/dc96d42c4af2d05bb8229916c27fa0a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let parse (buffer : byte []) = | |
try | |
JsonSerializer.DeserializeAsync<'T>(IO.MemoryStream(buffer)) | |
|> Async.AwaitTask | |
|> Some | |
with _ -> None |
Author
wklm
commented
Jan 9, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment