Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366722

Summary: API for tracking asynchronous, potentially long-running operations in javascript
Product: [ECD] Orion Reporter: Szymon Brandys <Szymon.Brandys>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: antonm, john.arthorne, malgorzata.tomczyk, susan, tomasz.zarna
Version: unspecified   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Szymon Brandys CLA 2011-12-14 11:19:16 EST
It would be good to have API to run asynchronous operations in Orion, something like Jobs API. These tasks would be reported on our task/operation list that Gosia prepared.

I wonder if we could have one API to run asynchronous operations on the client side and for long-running server operations?
Comment 1 Szymon Brandys CLA 2011-12-15 05:37:16 EST
I was thinking about it a bit and what I really had in mind was API similar to IProgressMonitor API. For instance I want to write code like this:

function(){
	progress.beginOperation("myOperation", 100);
	doSomething1();
	progress.worked(50);
	doSomething2();
	progress.done();
}

It would create an operation being tracked by the progress/operations view. So I could start a long operation on one page, switch to another page and track the operation in the mini progress view there. Then I could do something else waiting for the operation to be finished.
Comment 2 Tomasz Zarna CLA 2012-01-04 05:38:49 EST
Mike has shared[1] a link to a javascript lib for thread-like tasks -- task.js

[1] http://dev.eclipse.org/mhonarc/lists/orion-dev/msg01089.html
Comment 3 Szymon Brandys CLA 2012-01-04 06:23:30 EST
(In reply to comment #2)
> Mike has shared[1] a link to a javascript lib for thread-like tasks -- task.js

And the link itself - http://taskjs.org/
Comment 4 Malgorzata Janczarska CLA 2012-01-05 11:18:58 EST
And another helful link:
http://www.useragentman.com/blog/2012/01/03/cross-browser-html5-progress-bars-in-depth/
Comment 5 Anton McConville CLA 2015-05-08 10:26:20 EDT
This is an old bug. The progress monitoring has evolved. Closing this - if future work is identified let's raise a new bug.