Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AwaitTask throws AggregateException #14

Merged
merged 1 commit into from
Oct 15, 2023

Conversation

laat
Copy link
Contributor

@laat laat commented Oct 15, 2023

Appen fungerer, men fikk massevis av disse mens jeg kjørte appen.

Some unknown exception  System.AggregateException: One or more errors occurred. (The operation was canceled.)
 ---> System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask`1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
   --- End of inner exception stack trace ---

AwaitTask er litt buggy og kaster AggregateException, slik at catch-blokka ikke fungerer som forventa.

fsharp/fslang-suggestions#840

@bjorn-einar-bjartnes-4ss bjorn-einar-bjartnes-4ss merged commit 005ecb2 into bjartwolf:main Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants