point-source / dart_ping

Multi-platform network ping utility for Dart
31 stars 14 forks source link

Stream triggers much more times than specified interval #60

Closed afzl-wtu closed 10 months ago

afzl-wtu commented 10 months ago

when Setting:

final ping= Ping('google.com', count:10, interval:10);

Then listening this stream on StreamBuilder trigers builder function about 100 times a second instead of trigering it once (or twice) in 10 seconds.

StreamBuilder(
stream:ping.stream,
builder: (_, snap)=>print('builder ran successfully'),
)

This makes storing ping results in a list impossible.

afzl-wtu commented 10 months ago

Sorry Can not reproduce the error.