Skip to content

Commit 2235325

Browse files
committed
Document decorator preserving sync handlers
1 parent 30fe0af commit 2235325

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ headers of the SSE response yourself.
8585

8686
A datastar response consists of 0..N datastar events. There are response
8787
classes included to make this easy in all of the supported frameworks.
88+
Each framework also exposes a `@datastar_response` decorator that will wrap
89+
return values (including generators) into the right response class while
90+
preserving sync handlers as sync so frameworks can keep them in their
91+
threadpools.
8892

8993
The following examples will work across all supported frameworks when the
9094
response class is imported from the appropriate framework package.

0 commit comments

Comments
 (0)