-
-
Notifications
You must be signed in to change notification settings - Fork 360
Open
Labels
typingAdding static types to trio's interfaceAdding static types to trio's interface
Description
Obviously not something to do here, but I'd think it'd make most sense to do a protocol, with only the 6
acquire_*
/release_*
methods. That's all that a task needs to be limited, the others are only relevant forCapacityLimiter
's simple token strategy. The implementations ofacquire()
/release()
could be included in the protocol since they defer to theon_behalf_of
methods.
Originally posted by @TeamSpen210 in #2820 (comment)
Metadata
Metadata
Assignees
Labels
typingAdding static types to trio's interfaceAdding static types to trio's interface