Quantcast
Channel: Task and Async
Browsing latest articles
Browse All 5 View Live

Task and Async

Hello Ben,I have updated your code and tested, it works: private async Task GetLocalIp() { int timeout = 5000; var cts = new CancellationTokenSource(timeout); var result = string.Empty; var timeoutTask...

View Article



Task and Async

public MainPage() { this.InitializeComponent(); GetLocalIp().ConfigureAwait(false); } private async Task GetLocalIp() { int timeout = 1000; var timeouttask = Task.Run(async () => { await...

View Article

Task and Async

That helped me a lot! I read the topic that you linked to before I posted but the way you called the function in main led me to another article that helped explain the problem I have been having....

View Article

Task and Async

Hello glowblujel,I think you can create an anonymous task for this issue like following code.public MainPage() { this.InitializeComponent(); GetLocalIp().ConfigureAwait(false); } private async Task...

View Article

Task and Async

Hello,In my program I am trying to implement a try catch with a timeout, where if the code does not execute within a certain amount of time the catch is called. From what I understand, this can be done...

View Article

Browsing latest articles
Browse All 5 View Live


Latest Images