DescriptionMake chained futures point to their source instead of opposite.
This means that a chained future that nobody cares about will
not be kept alive by the source.
Any listeners added to the chained future is forwarded to the
source. If the chained source notices that the source has completed,
it copies the values and drops the link completely.
This should allow some unused futures to be GC'ed earlier than
otherwise.
R=floitsch@google.com
Committed: https://github.com/dart-lang/sdk/commit/ed0bc4315832315c76651e33cf02da2a0c5e713d
Patch Set 1 #
Total comments: 6
Patch Set 2 : Address comments. #Messages
Total messages: 12 (3 generated)
|