Skip to content

Add channel for event-handlers - #2

Open
XinyueZ wants to merge 2 commits into
ippy04:masterfrom
XinyueZ:master
Open

Add channel for event-handlers#2
XinyueZ wants to merge 2 commits into
ippy04:masterfrom
XinyueZ:master

Conversation

@XinyueZ

@XinyueZ XinyueZ commented Jul 26, 2016

Copy link
Copy Markdown

Thanks for merge last pull-req.

I add channels on go-routines for some reasons.

Current "handler"s are all event-handlers delegated by go-routine, that's nice. However,
it doesn't work for some long-time jobs like a network call on webservver(i.e GAE).
Add boolean channel to construct cocurrency for such jobs.

The channel is boolean for success or failed status inside go-routine.

Think about it, it might be useful.

XinyueZ added 2 commits July 26, 2016 21:23
Reason:

Current "handler"s are all event-handlers delegated by go-routine, that's nice. However,
it doesn't work for some long-time jobs like a network call on webservver(i.e GAE).
Add boolean channel to construct cocurrency for such jobs.

The channel is boolean for success or failed status inside go-routine.
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

Successfully merging this pull request may close these issues.

1 participant