S
S
Stepan Gervik2019-01-30 15:55:25
C++ / C#
Stepan Gervik, 2019-01-30 15:55:25

How to correctly implement a temporary task in C#?

Good afternoon, it is necessary that a certain task (method) be executed for a certain amount of time, and then completed.
For example, we wait for TCP connections for some time, after which, regardless of whether the client is connected or not, we complete this whole thing

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tex0, 2019-01-30
@HiLevel

If we are talking about asynchronous tasks, then Cancel asynchronous tasks after a certain period ...
or here: Cancel tasks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question