What is Nostr?
Matt Massicotte /
npub1xfk…wjhv
2024-05-15 12:45:40

Matt Massicotte on Nostr: Here's an easy mistake to make: putting your weak self check at the beginning of a ...

Here's an easy mistake to make: putting your weak self check at the beginning of a Task body when iterating over an AsyncSequence.

Instead, you want to check within the for-await loop, so you don't tie the lifecycle of self to the potentially-infinite sequence.

Author Public Key
npub1xfkfzq9r68c7e5xnt0u4jzexx0nvy239m6as32k8n4d0jqaaseeqskwjhv