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

docs: add statement about import and actor sequence #4688

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/md/writing-motoko/actors-async.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ In Motoko, actors have dedicated syntax and types:

- Waiting on `f` to be completed is expressed using `await f` to obtain a value of type `T`. To avoid introducing shared state through messaging, for example, by sending an object or mutable array, the data that can be transmitted through shared functions is restricted to immutable, shared types.

- All state should be encapsulated within the actor or actor class. The main actor file should begin with imports, followed by the actor or actor class definition.

## Defining an actor

Consider the following actor declaration:
Expand Down