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

aws_task_run #228

Merged
merged 1 commit into from
Jan 8, 2019
Merged

aws_task_run #228

merged 1 commit into from
Jan 8, 2019

Conversation

ColdenCullen
Copy link
Contributor

my_long_task_name->fn(my_long_task_name, my_long_task_name->arg, AWS_TASK_STATUS_LONG_ENUM);

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

my_long_task_name->fn(my_long_task_name, my_long_task_name->arg, AWS_TASK_STATUS_LONG_ENUM);
@@ -51,6 +51,11 @@ AWS_STATIC_IMPL void aws_task_init(struct aws_task *task, aws_task_fn *fn, void
task->arg = arg;
}

AWS_STATIC_IMPL void aws_task_run(struct aws_task *task, enum aws_task_status status) {
assert(task->fn);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] should we assert(task) too while we're at it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, it'll crash here, in the assert, soooo solid maybe?

@ColdenCullen ColdenCullen merged commit 67262a9 into master Jan 8, 2019
@ColdenCullen ColdenCullen deleted the aws_task_run branch January 8, 2019 21:01
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.

3 participants