-
-
Notifications
You must be signed in to change notification settings - Fork 562
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
rename #[async_worker] to #[ockam::worker] #1220
Comments
Looks like |
Yes that's right. |
I am just thinking should the name be kept as it is or just the original name Also, related nit:
There may be other places, where I might have missed it, so perhaps a good idea to define it consistently at one place and use the same name everywhere. |
@gabhijit thank you, completely agree on consistency 👍 The reason to rename to |
@gabhijit @mrinalwadhwa In order to use |
@SanjoDeundiak (Note: it's a As such for the boiler plate part, one will have to write another proc-macro |
All good points @gabhijit @SanjoDeundiak. To elaborate on what I'm imagining ... Line 10 has all the information for line 7 and 8 and my hope is we can eliminate line 7 and 8 |
For the time being I don't think it matters too much where we create the Ultimately we'll need to have a separate crate, similar to how the |
https://github.com/ockam-network/ockam/blob/develop/implementations/rust/ockam/ockam/src/lib.rs#L40
to:
#[async_worker]
with#[ockam::worker]
async_worker
, #[ockam::worker] will work ifockam
is a dependency.The text was updated successfully, but these errors were encountered: