diff options
Diffstat (limited to 'examples/nrf52840/src/bin/pubsub.rs')
| -rw-r--r-- | examples/nrf52840/src/bin/pubsub.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nrf52840/src/bin/pubsub.rs b/examples/nrf52840/src/bin/pubsub.rs index 688e6d075..cca60ebc9 100644 --- a/examples/nrf52840/src/bin/pubsub.rs +++ b/examples/nrf52840/src/bin/pubsub.rs | |||
| @@ -74,9 +74,9 @@ async fn fast_logger(mut messages: Subscriber<'static, ThreadModeRawMutex, Messa | |||
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | /// A logger task that awaits the messages, but also does some other work. | 76 | /// A logger task that awaits the messages, but also does some other work. |
| 77 | /// Because of this, depeding on how the messages were published, the subscriber might miss some messages | 77 | /// Because of this, depending on how the messages were published, the subscriber might miss some messages. |
| 78 | /// | 78 | /// |
| 79 | /// This takes the dynamic `DynSubscriber`. This is not as performant as the generic version, but let's you ignore some of the generics | 79 | /// This takes the dynamic `DynSubscriber`. This is not as performant as the generic version, but let's you ignore some of the generics. |
| 80 | #[embassy_executor::task] | 80 | #[embassy_executor::task] |
| 81 | async fn slow_logger(mut messages: DynSubscriber<'static, Message>) { | 81 | async fn slow_logger(mut messages: DynSubscriber<'static, Message>) { |
| 82 | loop { | 82 | loop { |
