w3ctag / promises-guide

A guide for spec authors on how to use Promises in prose and WebIDL.
https://www.w3.org/2001/tag/doc/promises-guide
192 stars 24 forks source link

Call out standard naming for .loaded properties #29

Closed domenic closed 4 years ago

domenic commented 10 years ago

Maybe add a partial interface for it that can be mixed in to places?

dbaron commented 4 years ago

@domenic Any chance you have some good examples to point to for this standard pattern? (It would be useful to have a little more detail here, I think.)

annevk commented 4 years ago

I think the idea was to add loaded getters that return a promise which is resolved in the same task the load event is dispatched. However there was never much interest to roll this out globally (or even more limited to document loading).

domenic commented 4 years ago

Yeah, this is probably worth closing at this point. https://www.w3.org/2001/tag/doc/promises-guide#one-time-events covers the point well enough, albeit implicitly (by using loaded as an example).

atanassov commented 4 years ago

Given there's nothing left to be done for this issue and per @domenic suggestion, closing.