• Kenton Varda's avatar
    Refactor: Promise should have fewer friends. · c28fb99c
    Kenton Varda authored
    Instead of making `Promise` friend everything that needs to construct a `Promise<T>` from an `Own<PromiseNode>` or vice versa, let's just friend `PromiseNode` itself -- which is already a "private" class by virtue of being in the `_` namespace -- and let it provide some static methods to do the conversions.
    c28fb99c
async-prelude.h 6.88 KB