Prepare to unsupport stream api on Mac darwin OS