Skip to content

Mysterious runtime failures when chaining methods on a Timer #14714

Closed
@dmanescu

Description

@dmanescu

In timer.rs:

use std::io::timer::Timer;

fn main(){
    let wait: Receiver<()> = Timer::new().unwrap().oneshot(5000);
    wait.recv();
}

Result:

task '<main>' failed at 'Box<Any>', /path/to/rust/src/libstd/comm/mod.rs:763

Unchaining the oneshot method call results in normal behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions