Comments (3)
Can you elaborate? Which example are you referring to, and what is the proposed replacement?
As a reminder, technical support is not provided via GitHub issues. You may ask technical questions in Stack Overflow, or open a discussion in the Parse Developers discussion forum.
from docs.
The next example is in your JS guide https://parse.com/docs/js/guide#promises-creating-async-methods
var delay = function(millis) {
var promise = new Parse.Promise();
setTimeout(function() {
promise.resolve();
}, millis);
return promise;
};
delay(100).then(function() {
// This ran after 100ms!
});
I wanted to use it in Cloud Code, but setTimeout
is not allowed
Result: ReferenceError: setTimeout is not defined
at delay (main.js:21:3)
at main.js:98:7
I suggest to add a note to your guide that setTimeout
is not supported in cloud code
from docs.
This specific example is around the use of Promises, which is a JavaScript SDK feature not specific to Cloud Code. The JavaScript SDK can be used in other environments where setTimeout
is defined.
from docs.
Related Issues (20)
- π Change block codes format to jsonc
- π Fix json example HOT 1
- π Navigation links in the API page are broken HOT 5
- π Wrong link to the API Reference in JavaScript block HOT 1
- π Improving Parse Server AWS guide
- π Refurbishment of Python code examples HOT 3
- Endpoint `loginAs` is falsely documented to require GET request HOT 6
- Remove forms that request sensitive information
- Parse Server Option `enforcePrivateUsers` not documented HOT 3
- π Remove reference to `{ usePost: true }` option in login documentation
- π Examples section with end to end tutorial HOT 6
- π How to use Defined Schema on existing Parse Server installation
- Update to PS6 π
- Create Rate Limit docsπ
- Create auth adapter docs
- Fix docs page HOT 6
- Documentation HOT 2
- π
- πProvide information on using Facebook's Limited Token
- π Missing examples throughout the docs HOT 2
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 docs.