pub fn insert_non_send_resource<T>(&mut self, resource: T) -> &mut Self
    where
        T: 'static,
    {
        self.app.world.insert_non_send(resource);
        self
    }
/// Inserts a non-send resource to the app
///
/// You usually want to use `insert_resource`, but there are some special cases when a resource must
/// be non-send.
///
/// ## Example
/// ```
/// # use bevy_app::prelude::*;
/// #
/// struct MyCounter {
///     counter: usize,
/// }
///
/// App::build()
///     .insert_non_send_resource(MyCounter { counter: 0 });
/// ```
Inserts a non-send resource to the app
You usually want to use `insert_resource`, but there are some special cases when a resource must
be non-send.
Inserts a non - send resource to the app You usually want to use ` insert_resource ` but there are some special cases when a resource must be non - send .
pub fn insert_non_send_resource<T>(&mut self, resource: T) -> &mut Self
    where
        T: 'static,
    {
        self.app.world.insert_non_send(resource);
        self
    }
pub fn insert_non_send_resource < T > ( & mut self , resource : T ) -> & mut Self where T : ' static , { self . app . world . insert_non_send ( resource ) ; self }
Inserts a non-send resource to the app
You usually want to use `insert_resource`, but there are some special cases when a resource must
be non-send.
Inserts a non - send resource to the app You usually want to use ` insert_resource ` but there are some special cases when a resource must be non - send .
&mut self
resource
T
&mut self
resource
T
example
None
use bevy_app::prelude::*;
struct MyCounter {
counter: usize,
}

:build()
.insert_non_send_resource(MyCounter { counter: 0 });
```
struct MyCounter { counter : usize } : build () . insert_non_send_resource ( MyCounter { counter : 0 } ) ; ` ` `