wabbajack/Wabbajack.Common.CSP/IWritePort.cs

15 lines
350 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Wabbajack.Common.CSP
{
public interface IWritePort<TIn> : ICloseable
{
(AsyncResult, bool) Put(TIn val, Handler<Action<bool>> handler);
ValueTask<bool> Put(TIn val, bool onCaller = true);
}
}