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

Support for binding globals in the worker scope #45

Open
h2non opened this issue Sep 5, 2014 · 1 comment
Open

Support for binding globals in the worker scope #45

h2non opened this issue Sep 5, 2014 · 1 comment
Assignees
Milestone

Comments

@h2non
Copy link
Owner

h2non commented Sep 5, 2014

It should support passing a key, value or a map of values to extend the global object

thread().bindGlobal('utils', function () {
  // ...
}).run(function () {
  return typeof utils === 'function'
}).then(function (exists) {
   console.log('Exists:', exists) 
})
@h2non h2non self-assigned this Sep 5, 2014
@h2non h2non added this to the 0.1.2 milestone Sep 5, 2014
@h2non h2non changed the title Support for binding global in worker scope Support for binding globals in worker scope Sep 5, 2014
@h2non h2non changed the title Support for binding globals in worker scope Support for binding globals in the worker scope Sep 5, 2014
@h2non
Copy link
Owner Author

h2non commented Sep 5, 2014

There will be an issue when using pool of threads... is required to persist the global values in the window scope

@h2non h2non modified the milestones: 0.1.3, 0.1.2 Sep 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant