Page MenuHomePhabricator

Remove the `Futures()` method
ClosedPublic

Authored by joshuaspence on Dec 30 2014, 12:21 PM.
Tags
None
Referenced Files
F14078274: D11081.diff
Fri, Nov 22, 3:03 AM
F14076556: D11081.id26606.diff
Thu, Nov 21, 6:14 PM
Unknown Object (File)
Mon, Nov 18, 3:37 PM
Unknown Object (File)
Thu, Nov 14, 10:53 AM
Unknown Object (File)
Wed, Nov 13, 11:44 AM
Unknown Object (File)
Sat, Nov 9, 10:17 PM
Unknown Object (File)
Wed, Nov 6, 3:56 AM
Unknown Object (File)
Tue, Oct 29, 4:40 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.