What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-15 08:14:03
A task was canceled.
clientHttp.Timeout = TimeSpan.FromMinutes(30); Add solution -
C# 2021-09-10 15:11:02
c# task.run cancellationtoken timeout
private async Task TryTask() { CancellationTokenSource source = new CancellationTokenSource(); source.CancelAfter(TimeSpan.FromSeconds(1)); Task<int> task = Task.Run(() => slowFunc(1, 2, source.Token), source.Token); // (A canceled task ... Add solution -
VBA 2021-09-06 14:32:02
how to convert weeks to days into textbox with VB site:stackoverflow.com
'TextBox1 is where the user inputs the number of minutes Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged Dim d = TimeSpan.FromMinutes(TextBox1.Text) 'creates a TimeSpan based on user input, this is also ... Add solution
Best helpers
Ranking is empty