Opened 12 years ago

Closed 12 years ago

#2561 closed enhancement (wontfix)

We need job support utilities.

Reported by: guest Owned by: anonymous
Priority: high Milestone:
Component: General Version:
Keywords: Cc: li.jianye@…, bill
Blocked By: Blocking:

Description

Rich client is a classical multi-task application, so there is some important utilities that dojo should develop. At least we need a user block/unblock long-term function. function definition:

dojo.provide("dojo.Task");
dojo.Task.Running(/**function*/invokeFunction,/**boolean*/isblock);

sample code below here:

dojo.Task.Running(function(){
    //do something as one of the multi-task
},false);
dojo.Task.Running(function(){
    //do something which block other operator from user.
},true);

my email: li.jianye@…

Change History (4)

comment:1 Changed 12 years ago by guest

"unblock/block" is a GUI effect. Normally, we use a "div" element simulate it.

comment:2 Changed 12 years ago by tk

Cc: li.jianye@… bill added

I believe the guest above didnt understand this ticket... Dojo isnt an end all/be all solution, it provides building blocks to build applications from. Your application should extend richText or provide an central "task service" that it loads and provides current status to each of the users... and then enabling/disabling what aspects of the application are available based on that...

I really dont believe this is valid enhancement for any of the Dojo widgets... CC'ing Bill on this since Widgets are his cup of tea.

-Karl

comment:3 Changed 12 years ago by bill

Yup, Karl is right. This ticket seems to be asking for multithreading in javascript, which isn't possible. There are some (non-dojo) libraries to simulate it, but Dojo doesn't want to support anything like that.

comment:4 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.