4 ms·
The naming can be confusing since "then" is usually used for async operations.
by csomar 6y ago
The naming can be confusing since "then" is usually used for async operations.
- steveklabnik 6y agoThat ship had already sailed in Rust https://doc.rust-lang.org/stable/std/?search=then https://doc.rust-lang.org/stable/std/?search=then
- hobofan 6y agoOption and Result already have a `and_then` in addition to the futures methods you mention, so it should just always be assumed that then/and_then have slightly different meanings depending on the context.