forked from reactphp/promise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added wait method first daft, and moved the failing tests,
The difference in Guzzle promise implementations mainly lay in the construction. According to promises-aplus/constructor-spec#18 it's not valid. The constructor starts the fate of the promise. Which has to been delayed, under Guzzle. The wait method is necessary in certain callable functions situations. The constructor will fail it's execution when trying to access member method that's null. It will happen when passing an promise object not fully created, itself. Normally an promise is attached to an external running event loop, no need to start the process. The wait function/method both starts and stops it, internally.
- Loading branch information
1 parent
deda469
commit b2076f6
Showing
7 changed files
with
280 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.