Can't you put that outside your inner loop?
On Mar 26, 2014 5:15 PM, "Phil Dawes" <rustp...@phildawes.net> wrote:

> Hello everyone!
>
> I'm interested in using rust for latency sensitive applications. What's
> the cheapest way to achieve isolation in a native rt environment?
>
> I'd like to do something like:
>
> let result: Result<Foo, ()> = task::try(proc() {
>     ... potentually failing code ...
> });
>
> but as cheaply as possible and without spawning a thread. Should I attempt
> to implement a new type of task that runs immediately in the same OS thread
> or is there another way to achieve the same isolation?
>
> Many thanks,
>
> Phil
>
>
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>
>
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to