Comments (8)
resolve is much more accurate. Sometimes other getters might need these values. Those getters would not be able to be able to read the value in the promise synchronously (there is a way as of 4.0).
from bitballs.
In 4.0 you could write:
get(){ return canReflect.getKeyValue(this.promise,”value”) }
from bitballs.
@justinbmeyer Thanks. What is the alternative way for a getter awaiting a promise as of 4.0?
from bitballs.
This same technique works in 3.0.
from bitballs.
@justinbmeyer Your comment wasn't a response to me was it?
from bitballs.
It was. What are you looking for? Async getters go back a long way.
from bitballs.
Sorry, I think I probably have misunderstood you.
In your first comment, all this is clear:
resolve is much more accurate. Sometimes other getters might need these values. Those getters would not be able to be able to read the value in the promise synchronously
However, the meaning of this bit in parenthesis was not clear to me:
(there is a way as of 4.0).
I assumed you meant that in 4.0, there exists a new or alternative pattern for a getter awaiting another getter's promise (other than the one discussed in the OP). That's why I followed up with:
What is the alternative way for a getter awaiting a promise as of 4.0?
You let me know the pattern in the OP works in 3.0 as well, but it still is not clear to me what was meant by "there is a way as of 4.0" in regards to being able to read the value in the promise synchronously.
So, it's not clear to me what you were hinting at when you said:
(there is a way as of 4.0).
And that's what I was expecting a reply about!
So, what was meant by "there is a way as of 4.0"?
Anyways, hopefully my misunderstanding here makes sense and you can help clear it up! Thanks.
from bitballs.
That is pretty cool. Thanks
from bitballs.
Related Issues (20)
- Fully upgrade to canjs 5 and steal 2.0 HOT 3
- KefirJS Weirdness HOT 1
- Stats are linkable
- Player Stats Page should have stats
- Incorrect copy-pasted comment
- NHT: Techdebt: onboarding docs/work on new versions of node HOT 6
- NHT: Link to an individual stat HOT 4
- NHT: Documentation: Outline new user creation + email authentication for local development
- NHT: Add stats (with links) to the Player page
- NHT: Users shall be able to create “stats."
- NHT: Send an email to the uber-admin when a new User is created.
- NHT: Improve assignment of a player to a team. HOT 1
- NHT: Keyboard shortcuts to add stats HOT 2
- NHT: Edit stats, games, tournaments rather than just delete and remake
- NHT: Improve player to team assignment flow HOT 2
- NHT: Player → Team assignment: Player typeahead
- NHT: Player → Team assignment: Inline create player
- NHT: Player → Team assignment: Display user ranking when adding players to team
- NHT: Improve (add stat) modal window HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitballs.