final Stream<Resource<int>> someIntStream = Stream.fromIterable( [Loading(null), Success(3), Failure.fromMessage("Failed")]);