Created
May 12, 2024 11:14
-
-
Save yongjhih/6fbe01696b8497f70a67171e5fa8ab49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:rxdart/rxdart.dart'; | |
void main() async { | |
final (name, year) = await Stream.fromFuture(Future.value("a")) | |
.zipWith(Stream.fromFuture(Future.value(2)), (a, b) => (a, b)) | |
.first; | |
print(name); | |
print(year); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment