sequence module: optimized sync/async implementations of some primitives