Platform-history icon indicating copy to clipboard operation
Platform-history copied to clipboard

Implement Streams/task streams

Open EGreg opened this issue 10 years ago • 0 comments

It should look something like this

Streams.create({
    type: 'Streams/task'
}, function () {
    this.onUpdated('progress').set(function ({

    }, tool);
});

No need to implement extension classes without tables. Instead of $stream->Streams_Task->progress(0.5) We will just have this:

Streams_Task::progress($stream, 0.5);
$stream->setAttribute('progress', '0.5');
$stream->changed();

Maybe also post Streams/progress and Streams/completed messages, so others can subscribe to them? Or they can just subscribe to "Streams/changed" with a custom handler?

Streams

EGreg avatar Sep 16 '15 15:09 EGreg