I'm using the filtered statuses stream and would like to be able to cancel the listening process ASAP.
Currently i'm using the following code (form the documentation):
(from strm in twitterCtx.Streaming
where strm.Type == StreamingType.Filter &&
strm.Track == "twitter"
.StartAsync(async strm =>
// Do Something
I could use a cancellation token within StartAsync but this would still wait until the next status is received (this could take a while when using a filter with low popularity).
Can this be refactored to cancel the listening process ASAP?