Why I use ES3File.Save to save data in Task.Run,but nothing to happen d

Discussion and help for Easy Save 3
Post Reply
Winemakers
Posts: 2
Joined: Thu Jul 15, 2021 6:52 pm

Why I use ES3File.Save to save data in Task.Run,but nothing to happen d

Post by Winemakers »

Task.Run(()=>{
ES3File file=new (path);
file.save(key , value);
file.sync();
})

My code about async saving data is similar to above,but no file was created.
Who can help me?Why?
:? :? :? :? :? :? :? :?
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Why I use ES3File.Save to save data in Task.Run,but nothing to happen d

Post by Joel »

Hi there,

Please could you create a script that I can drop into an empty scene in a new project which replicates this?

Also ES3File is deprecated and you should use the caching storage location instead:
https://docs.moodkie.com/easy-save-3/es ... rformance/

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Winemakers
Posts: 2
Joined: Thu Jul 15, 2021 6:52 pm

Re: Why I use ES3File.Save to save data in Task.Run,but nothing to happen d

Post by Winemakers »

Than you very much ~~
I will have a try about using this cache function for async saving.
:mrgreen:
Post Reply