Skip to content

Commit 443a94b

Browse files
MatousMarikTC-MO
andauthored
docs: typo (#1480)
Co-authored-by: Michał Olender <[email protected]>
1 parent 3e5b190 commit 443a94b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sources/platform/actors/development/programming_interface/basic_commands.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ async def main():
297297

298298
The SDK provides convenient methods for exiting Actors:
299299

300-
1. Use `exit()` with custom messages to inform users about the Actor's achievements or issues.
301-
302-
2. The `exit()` method emits `exit` event allowing components to perform cleanup or state persistence.
300+
- Use `exit()` with custom messages to inform users about the Actor's achievements or issues.
301+
- Use `fail()` as a shortcut for `exit()` when indicating an error. It defaults to an exit code of `1` and emits the `exit` event, allowing components to perform cleanup or state persistence.
302+
- The `exit()` method also emits the `exit` event, enabling cleanup or state persistence.
303303

304304
Example of a failed exit using a shorthand method:
305305

0 commit comments

Comments
 (0)