How can I add a timeout to a dart stream

前端 未结 0 1819
心在旅途
心在旅途 2021-01-28 09:38

I would like to get a timeout when I listen to a stream but don\'t receive a value after a duration. Here is a example how it could look like:

dtcStatus.valueStre         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题