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

sharing memory structure between tasks #32

Closed
mikehaas763 opened this issue Aug 4, 2015 · 4 comments
Closed

sharing memory structure between tasks #32

mikehaas763 opened this issue Aug 4, 2015 · 4 comments
Labels
Milestone

Comments

@mikehaas763
Copy link

I have a serve task that starts a Browsersync server. When my tasks are done running I can then call browserSyncServer.reload() to reload the page in browsers. I'm doing this with a watch. It would be nice if I could split the watch task into its own module that is isolated from the serve task.

I should mention that these tasks are registered with a custom registry that require's the individual task functions which are located in separate modules. The custom registry uses a configuration object. I could just place a reference to the Browsersync server somewhere on the configuration object and access it from the other tasks.

Is that going to be the smoothest way to accomplish sharing data between tasks forward into the future of undertaker and g4 or have you thought about any other APIs that could make it more straight forward?

@phated
Copy link
Member

phated commented Aug 10, 2015

Can you give me some code to see how you are currently doing this? That will better help me make suggestions. Thanks

@phated
Copy link
Member

phated commented Aug 21, 2015

@mikehaas763 pinging

@phated phated modified the milestone: 1.0.0 Aug 21, 2015
@mikehaas763
Copy link
Author

I saw your replies, just short on time. This is still on my todo list. I'll let you know when I revisit it. Thanks @phated

@phated
Copy link
Member

phated commented Sep 23, 2015

Going to close this for inactivity soon. We are getting close to shipping the 1.0 and I don't have anything to go on to look into this issue.

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

No branches or pull requests

2 participants