Skip to content

Commit

Permalink
Update overview.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity authored May 1, 2024
1 parent c1dd42f commit 518f96f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ After installing PyAwaitable, you need to initialize the ABI. This is done with
assert(awaitable_abi != NULL);
```

Note that the ABI is initialized *per file*, so you need to call `awaitable_init` at least once per file. For example, this can be done in a module initialization function:
Note that the ABI is initialized *per file*, so you need to call `awaitable_init` at least once per file. If you call `awaitable_init` after the ABI is initialized, it does nothing.

For example, the ABI can be initialized in a `PyInit_*` function:

```c
PyMODINIT_FUNC PyInit_yourextension() {
Expand Down

0 comments on commit 518f96f

Please sign in to comment.