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

Not pausing as expected #57

Open
boxxa opened this issue Jul 3, 2017 · 1 comment
Open

Not pausing as expected #57

boxxa opened this issue Jul 3, 2017 · 1 comment

Comments

@boxxa
Copy link

boxxa commented Jul 3, 2017

I am trying to wrap a function out of the talib library for the talib.execute(). Example code is https://github.com/oransel/node-talib/blob/master/examples/sma.js

Here is my function with synchronize and can't seem to get it to wait. emaData returns undefined and then the "EMA Function Done." message hits after. What am I missing with the sync wrapper?

`sync(talib, "execute")

var emaData = sync.fiber(function(){
talib.execute({
name: "EMA",
startIdx: 0,
endIdx: series.length - 1,
inReal: series,
optInTimePeriod: 3
}, function (err, result) {
console.log("EMA Function Done.");
return result
});
return emaData
})
console.log(emaData)
`

@l3laze
Copy link

l3laze commented Sep 13, 2017

Not sure, but I think this project is dead -- been trying to use it with a few different async libraries and it just keeps failing. And considering the last commits to master were a year ago that's a good sign it's been abandoned just like most JS fads.

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