Skip to content

OnceCallback: callback design lessons from Chromium ​

This directory systematically teaches the design of a modern C++ callback system by implementing a Chromium-style OnceCallback component. The content is split into two learning paths:

Complete beginner tutorial (full/) ​

Aimed at readers starting from zero, it opens with a review of fundamental C++ features and gradually leads up to a complete component implementation.

Prerequisites (7 articles):

Hands-on practice (6 articles):

Advanced design guide (hands_on/) ​

Aimed at readers who already have C++ template experience, it is a fast-paced walkthrough of the design motivation, the implementation strategy, and the test verification.

pdf-latest-4-g85128cc · 85128cc · 2026-10-05