diff --git a/examples/async_tasks/external_source_external_thread.rs b/examples/async_tasks/external_source_external_thread.rs index e16cdad60b..7e370879a2 100644 --- a/examples/async_tasks/external_source_external_thread.rs +++ b/examples/async_tasks/external_source_external_thread.rs @@ -46,7 +46,7 @@ fn setup(mut commands: Commands, asset_server: Res) { } // This system reads from the receiver and sends events to Bevy -fn read_stream(receiver: ResMut, mut events: EventWriter) { +fn read_stream(receiver: Res, mut events: EventWriter) { for from_stream in receiver.try_iter() { events.send(StreamEvent(from_stream)); }