-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
This module needs to be updated for Python 3.14. As it's not part of the core PyFluent business and unused internally, we should just remove it.
Below is an AI-suggested update if not removing, but this still feels wrong given the global scope of the side effect. It should just be removed.
def _get_loop():
try:
return asyncio.get_running_loop()
except RuntimeError:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
return loop
def execute_in_event_loop_threadsafe(f):
def cb(*args, **kwargs):
_get_loop().call_soon_threadsafe(partial(f, *args, **kwargs))
return cb
def execute_in_event_loop(f):
def cb(*args, **kwargs):
_get_loop().call_soon(partial(f, *args, **kwargs))
return cbReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels