Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promises aren't working properly #381

Closed
KfirShainholtz opened this issue Jan 19, 2016 · 2 comments
Closed

Promises aren't working properly #381

KfirShainholtz opened this issue Jan 19, 2016 · 2 comments

Comments

@KfirShainholtz
Copy link

Hello,
This past week I've been experiencing with Edge, invoking Func's from .NET to the server.

A problem occurs when trying to receive callbacks from methods inside a .then closure,
when I invoke a Func such as the following:
Edge.Func("function(options) {... doSomething.then(function(result) { options.InvokeCSharpFunc(result))}"), it just doesn't work.
In contrary to Edge.Func("function(options) {options.InvokeCSharpFunc(result)});
when not in a Promise closure.
the Request and jQuery's get requests
aren't responding well (or at all) when running them on Edge, too.

@pofider
Copy link

pofider commented Mar 11, 2016

I can confirm the same behavior for the q promise library;

require('q')().then(function() { console.log("never gets here'); });

@KfirShainholtz
Copy link
Author

Hello pofider,
since I posted this, I abandoned EdgeJS, and just created a
NodeJS service which interacts with my C# server.

To your comment, I didn't think that edge is behaving this way,
and didn't see it at the README (or I'm completely missing something)

So, I think the requests should be promisied, or should
be threat like the q.js ones, but any documentation should be put (about approaching callbacks in edge js)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants