take while on streams