public void DeQUEUE() { _ = ResourceQueue.Instance().PushItem(new DefaultResourceItem()); ResourceQueue.Instance().Fetch <DefaultResourceItem>(item => { return(true); }).Wait(); }
public void MutipleMessage_100_000() { for (int i = 0; i < 100_000; i++) { _ = ResourceQueue.Instance().PushItem(new DefaultResourceItem()); } for (int i = 0; i < 100_000; i++) { ResourceQueue.Instance().Fetch <DefaultResourceItem>(item => { return(true); }).Wait(); } }
public void PushItem() { _ = ResourceQueue.Instance().PushItem(new DefaultResourceItem()); }