Skip to content

Instantly share code, notes, and snippets.

@yongjhih
Created May 12, 2024 11:14
Show Gist options
  • Save yongjhih/6fbe01696b8497f70a67171e5fa8ab49 to your computer and use it in GitHub Desktop.
Save yongjhih/6fbe01696b8497f70a67171e5fa8ab49 to your computer and use it in GitHub Desktop.
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