Skip to content

Commit

Permalink
some jobs should be io
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Jun 23, 2024
1 parent c90275a commit a7a9a04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions rgis-file-loader/src/jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub struct LoadFileJobOutcome {

impl bevy_jobs::Job for LoadFileJob {
type Outcome = Result<LoadFileJobOutcome, geo_file_loader::Error>;
const JOB_TYPE: bevy_jobs::JobType = bevy_jobs::JobType::Io;

fn name(&self) -> String {
format!("Loading {} file", self.file_format.display_name())
Expand Down
1 change: 1 addition & 0 deletions rgis-network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub enum Error {

impl bevy_jobs::Job for NetworkFetchJob {
type Outcome = Result<FetchedFile, Error>;
const JOB_TYPE: bevy_jobs::JobType = bevy_jobs::JobType::Io;

fn name(&self) -> String {
format!("Fetching '{}'", self.name)
Expand Down
1 change: 1 addition & 0 deletions rgis-ui/src/add_layer_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub struct OpenFileJob;

impl bevy_jobs::Job for OpenFileJob {
type Outcome = Option<OpenedFile>;
const JOB_TYPE: bevy_jobs::JobType = bevy_jobs::JobType::Io;

fn name(&self) -> String {
"Opening file".into()
Expand Down

0 comments on commit a7a9a04

Please sign in to comment.