Hello,

If you want to execute a function after a timeout, use the add_timeout 
operator
(?fast:bool,float,(()->float))->unit
Call a function in N seconds. If the result of the function is positive 
or null, the task will be scheduled again after this amount of time (in 
seconds).
▪fast (bool – defaults to true): Set to false if the execution of the 
code can take long in order to lower its priority below that of request 
resolutions and fast timeouts. This is only effective if you set a 
dedicated queue for fast tasks, see the “scheduler” settings for more 
details.
▪(unlabeled) (float)
▪(unlabeled) (()->float)
On 7/15/2014 2:02 PM, Alexander wrote:
> Hello, question is still actual. Could you help me please?
>
>
> 2014-06-12 1:25 GMT+04:00 Alexander <[email protected] 
> <mailto:[email protected]>>:
>
>     Hello,
>
>     Is it possible to modify existing source by timeout?
>
>     For example:
>     s = single(...)
>
>     def modify_source(s)
>     s2 = single(...)
>     add(normalize=false, [ sequence([ blank(duration=5.),
>     fade.initial(duration=5.,s2) ]), fade.final(duration=5.,s) ])
>     end
>
>     s = apply_func_by_timeout(func = modify_source, timeout = 1., s)
>     output.dummy(s)
>
>     -- 
>     Kind regards,
>     Alexander.
>
>
>
>
> -- 
> Kind regards,
> Alexander.
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
>
>
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to