
    aj                          d Z ddlmZ d Zd Zy)zA
This file is used mainly as a bridge for thenable abstractions.
    )isawaitablec                        fd} |       S )Nc                  0   K      d {         S 7 w)N obj
on_resolves   e/var/www/html/myl_app/scheduler-service/venv/lib/python3.12/site-packages/graphene/utils/thenables.pybuild_resolve_asyncz.await_and_execute.<locals>.build_resolve_async	   s     )$$)s   	r   )r   r	   r   s   `` r
   await_and_executer      s    %       c                 @    t        |       rt        | |      S  ||       S )z
    Execute a on_resolve function once the thenable is resolved,
    returning the same type of object inputed.
    If the object is not thenable, it should return on_resolve(obj)
    )r   r   r   s     r
   maybe_thenabler      s%     3 j11 c?r   N)__doc__inspectr   r   r   r   r   r
   <module>r      s     !
r   