public Option <WorkSubmission <W> > Submit(W work) { var submission = new WorkSubmission <W>(Interlocked.Increment(ref lastid), work); enqueued.Enqueue(submission); return(submission); }
public WorkDispatch(WorkSubmission <W> work) { this.work = work; this.timestamp = now(); }