public IEnumerator GetEnumerator() { CheckClosed(); lock(myLock) { if(this.consumer == null) { this.consumer = CreateConsumer(); } } return this; }