Page MenuHomePhabricator

Remove the `Futures()` method
ClosedPublic

Authored by joshuaspence on Dec 30 2014, 12:21 PM.
Tags
None
Referenced Files
F18849690: D11081.id26597.diff
Oct 30 2025, 11:29 AM
F18432972: D11081.diff
Aug 31 2025, 7:13 AM
F18091218: D11081.id.diff
Aug 6 2025, 8:20 PM
F18091043: D11081.id26597.diff
Aug 6 2025, 6:42 PM
F18082912: D11081.diff
Aug 5 2025, 8:00 AM
F17931008: D11081.id26606.diff
Jul 30 2025, 6:29 PM
F17837801: D11081.id26597.diff
Jul 26 2025, 5:49 PM
F17829024: D11081.diff
Jul 26 2025, 9:43 AM

Details

Summary

Fixes T6829. Removes the Futures() method in favor of calling new FutureIterator($futures) explicitly. Depends on D11077, D11078 and D11079.

Test Plan

We could possibly deprecate this function instead (with phutil_deprecated).

Diff Detail

Repository
rPHU libphutil
Branch
master
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/future/FutureIterator.php:31XHP45PHP Compatibility
Unit
Tests Passed
Build Status
Buildable 3379
Build 3386: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley edited edge metadata.
This revision is now accepted and ready to land.Dec 30 2014, 12:33 PM

I think removing it outright is reasonable, this is a fairly advanced feature that probably has seen little/no third-party use.

This revision was automatically updated to reflect the committed changes.

A little late to vote on this now, but deprecating would have been nicer.

I ran into this error, and it took a while to realize it was using an old forked version of Arcanist:

PHP Fatal error: Call to undefined function Futures() in ~/Tools/arcanist/src/repository/api/ArcanistGitAPI.php on line 612

I think that if you've forked rARC then you should probably fork rPHU as well.