[Swift-devel] Functionality request: best effort execution

Mihael Hategan hategan at mcs.anl.gov
Mon Jul 13 18:59:24 CDT 2009


That somewhat crosses over the fence of
time-agnostic/sequence-independent nature that swift is in.

Can you implement this as part of your application (i.e. a wrapper
script)?

On Mon, 2009-07-13 at 18:21 -0500, Tiberiu Stef-Praun wrote:
> Hi Swift team
> 
> I am curious if there is a way of coding up (or having in the near
> future) the following functionality:
> 
> (file output) applicationWrapper(file input){
>    appOutput = runAtomicApplication(input);
>    dummyOutput = runTimer ();
> 
>    if (Atomic Application Finished First){
>       output = appOutput;
>   } else {
>      output = dummyOutput;
>   }
> }
> 
> 
> I am not sure how to tell swift to stop waiting for the second task,
> as soon as the first one has completed successfully.
> 
> Thank you
> Tibi
> 




More information about the Swift-devel mailing list