std::generator<Ref,V,Allocator>::promise_type::initial_suspend

std::suspend_always initial_suspend() const noexcept;
(C++23 起)

等价于 { return std::suspend_always{}; },即 std::generator 总是延迟启动(处于暂停状态)。

参数

(无)

返回值

awaitable 对象。