Project

General

Profile

Actions

Feature #2845

open

Call observe() and neglect() on a stream

Added by Gregory Magarshak about 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
High
Category:
-
Start date:
03/22/2023
Due date:
04/26/2023 (over 2 years late)
% Done:

0%

Estimated time:
2.00 h

Description

When some tools call retain() on a stream, they should probably also do stream.observe() in order to start temporarily receiving messages posted to the stream, and update their representation.

When they call release() on a stream (e.g. Q.beforeRemove) then they would then do stream.neglect() if they did stream.observe() before. That way we would see realtime updates until tool is removed, it will release stream and neglect it.

For example Streams/participants tool would be great to do that... so we can see participants joining/leaving some stream (e.g. a Calendar event, or a Conversation) while the tool is visible.

But when participants tool is removed through for example Q/lazyload tool adding/removing tools while scrolling, it will neglect stream, and when it reappears, it will observe again. Would be cool!

Actions #1

Updated by Gregory Magarshak about 2 years ago

  • Tracker changed from Bug to Feature
Actions #2

Updated by Gregory Magarshak about 2 years ago

  • Assignee set to Andrey Tepaykin
Actions

Also available in: Atom PDF