wabbajack/Wabbajack.Common.CSP/IReadPort.cs

13 lines
277 B
C#
Raw Normal View History

using System;
using System.Threading.Tasks;
namespace Wabbajack.Common.CSP
{
public interface IReadPort<TOut> : ICloseable
{
ValueTask<(bool, TOut)> Take(bool onCaller = true);
(AsyncResult, TOut) Take(Handler<Action<bool, TOut>> handler);
}
}