What is the difference between actor {...}
and service {...}
in Motoko?
Is that in service
I don’t need to write async
for each method?
What is the difference between actor {...}
and service {...}
in Motoko?
Is that in service
I don’t need to write async
for each method?
service
is a Candid keyword, not Motoko. In Candid, most service functions are asynchronous and only sometimes oneway so Candid drops the async keyword.