MsgPack.SubtreeUnpacker.DrainAsync C# (CSharp) 메소드

DrainAsync() 공개 메소드

public DrainAsync ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
리턴 Task
		public override async Task DrainAsync( CancellationToken cancellationToken )
		{
			if ( this._state >= State.Drained )
			{
				return;
			}

			while ( await this.ReadAsync( cancellationToken ).ConfigureAwait( false ) )
			{
				// nop
			}

			this._state = State.Drained;
		}