refactor: handling a stream with a given block
Merge pull request #2 from padi/refactor/stream

refactor: handling a stream method with a given block