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

Is process.nextTick supported? #329

Closed
vIceBerg opened this issue Oct 11, 2015 · 2 comments
Closed

Is process.nextTick supported? #329

vIceBerg opened this issue Oct 11, 2015 · 2 comments

Comments

@vIceBerg
Copy link

Hi!

Using this code:

        var onMessage = (Func<object, Task<object>>)(async (message) =>
        {
            Console.WriteLine(message);
            return "Received string of length " + ((string)message).Length;
        }); 



        var func = EdgeJs.Edge.Func(@"
            var indexer = require('./TuxedoSearch/indices/indexer');
            var indexDefinitions = require('./TuxedoSearch/indices/definition').definitions;

            return function(data, callback) {
                process.nextTick(function() {
                    callback(null, indexDefinitions);
                });
            }
        ");

        var result = func(new {data = elasticSearchUrlTextBox.Text, onMessage = onMessage} ).Result;

It hangs... as if process.nextTick was not supported..

@dpolivy
Copy link
Contributor

dpolivy commented May 2, 2017

This is related to #325. I'm working on a fix; you can follow along in that issue for details.

@dpolivy
Copy link
Contributor

dpolivy commented May 8, 2017

A fix was just released which should address this. See if the latest release (edge@7.10.0) fixes the problem and report back!

@agracio agracio closed this as completed Oct 1, 2024
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

3 participants