immersive-web / model-element

Repository for the <model> tag. Feature leads: Marcos Cáceres and Laszlo Gombos
https://immersive-web.github.io/model-element/
Other
62 stars 11 forks source link

Almost everything is `promise` based #12

Open cabanier opened 2 years ago

cabanier commented 2 years ago

Is it necessary that every method and attribute returns a promise?

marcoscaceres commented 2 years ago

As I draft the spec, I'll review review each on a case by case basis. However, as stated in the explainer:

Note the use of promises since it is likely that the model is rendered out-of-process and any communication with that process would need to be asynchronous. This applies to other promise-based APIs discussed in this document

but will check if there are calls that don't need them.