Here are the examples of the csharp api System.Threading.Tasks.TaskCompletionSource.SetResult(RequestPacket) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : CallBackHandler.cs
with BSD 3-Clause "New" or "Revised" License
from fs7744
with BSD 3-Clause "New" or "Revised" License
from fs7744
public void SetResult(T key, RequestPacket result)
{
if (results.TryRemove(key, out TaskCompletionSource<RequestPacket> source))
{
source.SetResult(result);
}
}