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

naming issue, "performGroupedBlock" actually performs no block #32

Open
lastcc opened this issue Dec 25, 2016 · 1 comment
Open

naming issue, "performGroupedBlock" actually performs no block #32

lastcc opened this issue Dec 25, 2016 · 1 comment

Comments

@lastcc
Copy link

lastcc commented Dec 25, 2016

You named it "performGroupedBlock" but it actually performs no block, only wraps it to be performed later.

So, I guess there is a more suitable name for it?

@lastcc
Copy link
Author

lastcc commented Dec 25, 2016

func performGroupedBlock<A,B>(block: (A,B) -> ()) -> (A,B) -> () {
        precondition(didSetup, "Did not call setup()")
        return { (a: A, b: B) -> () in
            self.performGroupedBlock {
                block(a, b)
            }
        }
 }

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

1 participant