futures-glib 0.4.0

Spawn futures on the glib event loop
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate futures_glib;

use futures_glib::{MainLoop, MainContext};

#[test]
fn smoke() {
    let cx = MainContext::new();
    let lp = MainLoop::new(Some(&cx));
    assert!(!lp.is_running());
    lp.context();
}