mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #430] [MERGED] HostHook.CallAsync should use TaskCompletionSource.SetException instead of throwing exception #1178
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ElectronNET/Electron.NET/pull/430
Author: @freosc
Created: 6/12/2020
Status: ✅ Merged
Merged: 6/12/2020
Merged by: @GregorBiswanger
Base:
master← Head:master📝 Commits (3)
1238854Merge pull request #1 from freosc/CookieHandling519fb53Merge pull request #2 from ElectronNET/master37ae869HostHook CallAsync📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
ElectronNET.API/HostHook.cs(+4 -2)📄 Description
Actually, this pattern should be updated in the rest of the code as well.
Anywhere you use a TaskCompletionSource, you have to make sure the setResult or setException is called, otherwise the calling code will await forever.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.