HomeWildfire Games

Split Receiver from SharedState

Description

Split Receiver from SharedState

The Function is not restricted to std::function anymore. Move only function become possible.

Differential Revision: https://code.wildfiregames.com/D4840

Event Timeline

vladislavbelov added inline comments.
/ps/trunk/source/ps/Future.h
46–49

The comment is outdated.

297

What will be constructed here?

phosit marked an inline comment as done.Dec 3 2023, 9:22 AM
phosit added inline comments.
/ps/trunk/source/ps/Future.h
297

An object with the same type as m_Receiver. std::shared_ptr<FutureSharedStateDetail::Receiver<ResultType>> in this case.

vladislavbelov added inline comments.Dec 8 2023, 11:24 AM
/ps/trunk/source/ps/Future.h
297

Where temp and &temp->receiver will go to as arguments?