From fa8b6d57cd7744bc71f0cf47a0bae9f7594737ae Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 2 Dec 2020 03:45:23 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- Viewer/features/core.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Viewer/features/core.js b/Viewer/features/core.js index 81384fd1..ed8e2cbb 100755 --- a/Viewer/features/core.js +++ b/Viewer/features/core.js @@ -2486,12 +2486,19 @@ module.Workspace = ImageGridFeatures.Feature({ //--------------------------------------------------------------------- // Tasks and Queues... +// Queued wrapper... +// var Queued = module.Queued = function(func){ func.__queued__ = true return func } +// NOTE: for examples see: +// features/examples.js: +// ExampleActions.exampleQueuedAction(..) +// ExampleActions.exampleMultipleQueuedAction(..) + // XXX the general use-case here is to call the queue method multiple // times for instance to handle array elements, might be nice to // automate this... @@ -2536,8 +2543,6 @@ function(func){ // features/examples.js: // ExampleActions.exampleTask(..) // ExampleActions.exampleSessionTask(..) - -// // NOTE: we can pass sync/async to this in two places, in definition: // var action = taskAction('some title', 'sync', function(..){ .. }) // or @@ -2549,8 +2554,6 @@ function(func){ // during the later form 'sync' is passed to .Task(..) in the correct // position... // (see ig-types' runner.TaskManager(..) for more info) -// -// XXX might be nice to add metadata like start times and the like... var taskAction = module.taskAction = function(title, func){