On 5/10/13 4:45 PM, Felipe Gomes wrote:
Hi, does OS.File guarantees that write tasks that have started will be 
completed if a shutdown occurs? My use case is for writeAtomic but I'm 
interested about the behavior of both write and writeAtomic.
Corner case: what if I call write/writeAtomic from an xpcom-shutdown observer?
I'm not sure about the rest of this question. But you should not be performing any I/O after profile-before-change. See https://wiki.mozilla.org/XPCOM_Shutdown and note that after profile-before-change, we are working on immediately exiting the browser and skipping XPCOM shutdown. xpcom-shutdown is definitely too late!

--BDS

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to