Build a Fluent Async Method Chaining API with Sequential Promise Resolution

Design a class where each method performs an async operation and returns the same instance (this) wrapped in a Promise, enabling fully async fluent chains like: obj.fetchUser().then(o => o.loadPosts()).then(o => o.render()). Alternatively, implement it with a queue-based approach where async steps are enqueued and resolved lazily when .execute() is called. This is the async builder pattern used in test runners, ORMs, and multi-step API workflows.

Examples
Input: []
Output:
Hints

Build a Fluent Async Method Chaining API with Sequential Promise Resolution

Design a class where each method performs an async operation and returns the same instance (this) wrapped in a Promise, enabling fully async fluent chains like: obj.fetchUser().then(o => o.loadPosts()).then(o => o.render()). Alternatively, implement it with a queue-based approach where async steps are enqueued and resolved lazily when .execute() is called. This is the async builder pattern used in test runners, ORMs, and multi-step API workflows.