You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('test', () async {
final sub =BehaviorSubject<int>();
sub.close();
final empty =await sub.isEmpty;
print(empty);
});
test('test', () async {
final sub =BehaviorSubject<int>();
sub.add(1);
final empty =await sub.isEmpty;
print(empty);
});
Consider this case:
When run it never finishes.
However, when using
.hasValue
it works just fine:I wonder if this is a known/expected behavior or bug.
The text was updated successfully, but these errors were encountered: