04/08/2022, 1:20 PM
๐Ÿงช Have you ever wanted to split off some part of your
which has
await Get
in it, but didn't want to go through the hoops of a dedicated
? โšก Behold, the mighty
. โšก Does what it says on the tin! Allows you to split some code off of your
await Get
in it without the overhead of another rule. Example:
Copy code
async def _collect_thingamabobs(x, y, z):
    a = await Get(A, B, x)
    if y:
       a += await Get(C, D, z)
    return a

async def my_rule(...):
    a = await _collect_thingamabobs(x, y, z)
๐Ÿ“ฃ 2
๐Ÿ™‡ 1
๐Ÿ™Œ 2
๐Ÿ’ฅ 1