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);
    }
}