David Lechner b9dbaaa5cb fileStorage: implement file locks
This breaks down reading and writing into low-level and high level sagas.

Opening now takes a lock on the file so that it can only have one writer
or have multiple readers. The low-level read and write sagas use the
file descriptor to determine if the file is still open before actually
performing the action.

Since we are using the web locks api, these locks should work across
browser tabs/windows.

The high-level read/write sagas perform the low-level open, read/write,
close operations in a single call.

The high-level delete and rename sagas are also updated to take locks
on the files while performing the respective operations and will fail
if the file is already being used somewhere else.
2022-04-04 15:24:08 -05:00
2022-02-22 12:32:20 -06:00
2020-07-15 13:01:56 -05:00
2022-04-04 15:24:08 -05:00
2022-04-04 15:24:08 -05:00
2022-04-04 15:24:08 -05:00
2021-02-01 13:02:06 -06:00
2021-01-08 13:09:14 -06:00
2022-03-16 11:34:34 -05:00
2022-03-14 15:15:29 -05:00
2022-03-14 15:15:29 -05:00
2020-04-08 19:23:19 -05:00
2022-03-14 15:04:38 -05:00
2021-01-17 12:46:08 -06:00
2022-04-04 15:24:08 -05:00
2021-08-13 12:13:05 -05:00
2021-01-08 16:23:42 -06:00
2022-04-04 15:24:08 -05:00

example workflow name Coverage Status

pybricks-code

A Web App for programming LEGO® Powered Up smart hubs using Pybricks MicroPython.

Try it at https://code.pybricks.com or the latest updates https://beta.pybricks.com.

screenshot

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

For more details, see the file CONTRIBUTING.md.


LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this project.
S
Description
Web IDE for Pybricks
https://code.pybricks.com/
Readme MIT
52 MiB
Languages
TypeScript 90%
JavaScript 7.6%
SCSS 2.1%
HTML 0.2%
Python 0.1%