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

adds a parameter to running #8

Merged
merged 1 commit into from
Feb 11, 2014
Merged

Conversation

Tieske
Copy link
Member

@Tieske Tieske commented Feb 10, 2014

Allowing to patch only problem locations instead of monkey patching coroutine.running. But retains full compatibility with coroutine.running behaviour (so still can monkey patch).

Adds to #7

Example:

local cocall = require("coxpcall")

local myfunc = function(coro)
   coro = cocall.running(coro)   -- convert to original coroutine
   -- here do what needs to be done...
end

… instead of monkey patching coroutine.running
hishamhm added a commit that referenced this pull request Feb 11, 2014
adds a parameter to running
@hishamhm hishamhm merged commit 6f1116e into keplerproject:master Feb 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants