Skip to content

Commit

Permalink
Update deprecation warning to mention that spawning a generator will …
Browse files Browse the repository at this point in the history
…raise.
  • Loading branch information
danielshaar committed Dec 12, 2024
1 parent a364533 commit 7d40808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modal/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ async def _call_generator(self, args, kwargs):
async def _call_generator_nowait(self, args, kwargs):
deprecation_warning(
(2024, 12, 11),
"Calling spawn on a generator function is deprecated and will soon be removed.",
"Calling spawn on a generator function is deprecated and will soon raise an exception.",
)
return await _Invocation.create(
self,
Expand Down

0 comments on commit 7d40808

Please sign in to comment.