Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow fail messages to be caught, introduce Any trait #9967

Merged
merged 1 commit into from
Oct 28, 2013

Commits on Oct 28, 2013

  1. Allow fail messages to be caught, and introduce the Any trait

    Some code cleanup, sorting of import blocks
    
    Removed std::unstable::UnsafeArc's use of Either
    
    Added run-fail tests for the new FailWithCause impls
    
    Changed future_result and try to return Result<(), ~Any>.
    
    - Internally, there is an enum of possible fail messages passend around.
    - In case of linked failure or a string message, the ~Any gets
      lazyly allocated in future_results recv method.
    - For that, future result now returns a wrapper around a Port.
    - Moved and renamed task::TaskResult into rt::task::UnwindResult
      and made it an internal enum.
    - Introduced a replacement typedef `type TaskResult = Result<(), ~Any>`.
    Kimundi committed Oct 28, 2013
    5 Configuration menu
    Copy the full SHA
    fa8e71a View commit details
    Browse the repository at this point in the history