a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs(labeler): use for-await yield instead of directly yielding

fixes https://github.com/mary-ext/atcute/issues/67

Mary 041f5ef1 0ed0c024

+3 -1
+3 -1
packages/servers/labeler/README.md
··· 96 96 router.addSubscription(ComAtprotoLabelSubscribeLabels, { 97 97 async *handler({ params, signal }) { 98 98 try { 99 - yield* labeler.subscribeLabels({ cursor: params.cursor, signal }); 99 + for await (const event of labeler.subscribeLabels({ cursor: params.cursor, signal })) { 100 + yield { $type: 'com.atproto.label.subscribeLabels#labels', ...event }; 101 + } 100 102 } catch (err) { 101 103 if (err instanceof FutureCursorError) { 102 104 throw new XRPCSubscriptionError({ error: 'FutureCursor' });