I suppose that singleton tasks is the only way in this case. At least because of current testing facilities are usefull just for unit testing, but not for complex module testing, and in case of complex test cases we need to share some information between components. Also it will be needed in real-life application (for example for logging, security management and etc.). But, that type of API is not implemented yet, isn't it?
Alexander.
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
