2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00

Static Calling

This commit is contained in:
2022-08-07 23:09:31 +03:00
parent 0dc457bf7e
commit af94ce318a
18 changed files with 784 additions and 259 deletions

View File

@ -90,6 +90,16 @@ public class AsyncReply
return result;
}
public AsyncReply Timeout(int milliseconds, Action callback)
{
Task.Delay(milliseconds).ContinueWith(x =>
{
if (!resultReady && exception == null)
callback();
});
return this;
}
public object Wait(int millisecondsTimeout)
{