Commit Graph

127 Commits

Author SHA1 Message Date
nocturn9x 2661a153e9 Minor bug fixes, need to fix I/O 2020-11-29 12:06:09 +01:00
nocturn9x 899e12ead7 Added initial support for nested pools and added related tests. Added a couple more tests and separated the debugger class in a separate module. Unified want_read and want_write into a unique read_or_write method 2020-11-28 13:04:27 +01:00
nocturn9x 2429cbb863 Fixed some bugs with exceptions and propagations, I/O is broken 2020-11-27 21:52:45 +01:00
nocturn9x 4618c8cc79 Exceptions and cancellation seem to be working (except for server.py inside tests, investigation needed) 2020-11-26 16:57:20 +01:00
nocturn9x caee01977e Cancellation/Exceptions almost complete 2020-11-22 14:35:07 +01:00
nocturn9x 490b729804 Fixed some typos and errors 2020-11-18 20:48:32 +01:00
nocturn9x d60a372af5 Updated README, added debugging utility and simplified example 2020-11-18 12:13:46 +01:00
nocturn9x 70646a4767 Added some exclude paths to gitignore 2020-11-17 10:54:18 +01:00
nocturn9x adbdfa1209 README almost complete, improved examples 2020-11-17 10:06:35 +01:00
nocturn9x 497ef45307 Fixed events + Added some TODOs 2020-11-16 23:06:54 +01:00
nocturn9x 10c1b33e20 join() partially fixed 2020-11-16 21:49:13 +01:00
nocturn9x 981a598ae7 Various improvements to async pools 2020-11-16 08:07:19 +01:00
nocturn9x cc9eccf027 Identified issue with task.cancel() 2020-11-14 12:59:58 +01:00
nocturn9x 7b4051f3b9 Starting to work on async pools 2020-11-14 10:42:46 +01:00
nocturn9x 8986da1b98 Made the readme actually nice to read and easy to understand, some sections still need to be completed.
Updated examples and added some more safety checks at giambio.run and giambio.spawn
2020-11-13 13:01:40 +01:00
nocturn9x 0b1c5d75e7 Major library refactoring, made event loops thread-local (no need to carry scheduler objects around anymore) and fixed some bugs related to I/O. Made events simpler as they would overlap with a future implementation of channels 2020-11-13 10:44:47 +01:00
nocturn9x 3745886500 More polishing 2020-11-12 23:35:01 +01:00
nocturn9x daf727d67d Made the API a little bit cleaner 2020-11-12 23:25:51 +01:00
nocturn9x 3c9421c84c Fixed some stuff so the examples actually work 2020-11-12 23:10:54 +01:00
nocturn9x 8b095fbf72 Now exceptions sort of work 2020-11-12 22:45:00 +01:00
nocturn9x 3e4a87af21 Formatted code following black style 2020-07-13 22:02:31 +02:00
nocturn9x 84f8ac5728 Fixed cancellation and added a few docstrings 2020-07-11 15:09:31 +00:00
nocturn9x d2a20a14fc stuff 2020-07-11 08:57:12 +00:00
nocturn9x 398baadb74 Reverted back one commit. Events not fully working 2020-07-07 17:06:20 +00:00
nocturn9x 52ed68f35b Added some comments and try/except blocks 2020-07-07 14:09:31 +00:00
nocturn9x eb8770d0bf Added a TimeQueue implementation 2020-07-07 13:52:25 +00:00
nocturn9x 979e9959c6 Added the Event class and related functionality, polished the loop code 2020-07-07 13:17:12 +00:00
nocturn9x 0725e8695d Fixed an issue with sockets 2020-07-06 20:38:54 +00:00
nocturn9x 1676f3149b Small changes, cancellation needs a fix 2020-07-06 20:09:13 +00:00
nocturn9x fbee6c6f96 Added various exceptions layers 2020-07-05 06:58:23 +00:00
nocturn9x 5c5beeef22 Temporary 'meh' fix to allow exception propagation to occur, deleted old _managers.py module and refactored comments and docstrings 2020-06-19 21:39:54 +00:00
nocturn9x 094e3d50ac Various minor fixes 2020-06-17 16:23:43 +02:00
nocturn9x d16c0932ac Attempt to reimplement TaskManager, exceptions not working 2020-06-17 13:58:00 +00:00
nocturn9x 1b958b0341 Major refactoring, cancellation needs a fix 2020-06-16 16:56:11 +00:00
nocturn9x 7f22977480 Fixed exception propagation inside except blocks when a task is cancelled, base functionality completed 2020-04-05 11:40:31 +00:00
nocturn9x 1eec3d3078 Various fixes, check experiment.py file 2020-04-05 10:10:52 +00:00
nocturn9x 499ea4da85 Fixed the TaskManager exception handling 2020-04-04 17:14:04 +00:00
nocturn9x f890afacd1 Added a new extension to gitignore 2020-04-04 16:44:05 +00:00
nocturn9x d2d43235c9 Many fixes, still exceptions do not propagate properly, but tasks are cancelled when a task dies 2020-04-04 16:43:07 +00:00
nocturn9x f9eb329ec9 Many fixes, many TODOs added 2020-03-25 22:36:17 +00:00
nocturn9x 9f4346b430 Major change in the API 2020-03-25 18:37:57 +01:00
nocturn9x cdbf6d8ce1 Improved the API 2020-03-25 14:09:39 +00:00
nocturn9x 0e29cb7e8a Added context manager functionality and other related features 2020-03-25 13:39:32 +00:00
nocturn9x 68df239020 Fixed to the cancel method 2020-03-25 12:04:57 +01:00
nocturn9x c5da08a140 Partial fix to the cancel method 2020-03-25 11:27:29 +01:00
nocturn9x 14c21b56de Fixed the giambio.socket.AsyncSocket.connect() method 2020-03-25 07:40:01 +00:00
nocturn9x c6e04a5057 Added a small README and divided the lib into multiple files 2020-03-24 13:19:10 +00:00
nocturn9x 92835cf0d7 Fixed a recursive function call inside giambio.socket.AsyncSocket class 2020-03-24 08:41:23 +00:00
nocturn9x 1308135f12 Small refactoring to the sleep method that can now act as a checkpoint, added some docstrings 2020-03-24 08:42:29 +01:00
nocturn9x 3fee3890e6 Fixed I/O, TODO fix cancellation and add context manager 2020-03-23 22:26:09 +00:00
nocturn9x 74863525fd Updated TODOs 2020-03-23 20:42:12 +00:00
nocturn9x 8d9b874228 Added some TODOs and tried a solution for the cancel() method (and failed) 2020-03-23 19:49:12 +00:00
nocturn9x 3ad0d46cda Fixed the join mechanism and the schedule method 2020-03-23 18:36:58 +00:00
nocturn9x f63d7477ed Some stuff added 2020-03-23 18:09:18 +00:00
nocturn9x 4dd418db56 Removed nano save file 2020-03-23 17:52:40 +00:00
nocturn9x e55e3daa6c Fixed join mechanism 2020-03-23 17:52:17 +00:00
nocturn9x e8bef73f36 More TODOS 2020-03-21 12:09:11 +00:00
nocturn9x 54c36c08be Fixed the cancellation mechanism 2020-03-21 10:29:22 +00:00
nocturn9x 513d825c2b Added a TODO 2020-03-21 10:07:08 +00:00
nocturn9x 91b2cfb9da Minor changes 2020-03-21 09:59:59 +00:00
nocturn9x 63b90dcfb0 Some minor fixes (though issues still persist), added the giambio.core.EventLoop.schedule() method 2020-03-21 09:42:52 +00:00
nocturn9x 40b304f09e Added the sequence attribute to the EventLoop class 2020-03-20 17:38:17 +00:00
nocturn9x c30561b18c Added todos and comments 2020-03-20 18:13:04 +01:00
nocturn9x 25c404c961 Added file for experiments with the framework 2020-03-20 18:06:12 +01:00
nocturn9x bf3c477b02 Moved AsyncSocket class into a dedicated file 2020-03-20 17:57:07 +01:00
nocturn9x 496431a4d2 improved __repr__ method for Task class 2020-03-20 17:54:23 +01:00
nocturn9x c2f1d01dcf minor fixes (issue still persists) 2020-03-20 17:53:30 +01:00
nocturn9x 5bf06031ac Added connect() method to giambio.core.AsyncSocket class 2020-03-20 15:42:44 +00:00
nocturn9x 87fd7af36b Updated cancellation mechanism 2020-03-20 11:38:42 +01:00
nocturn9x d06813cd73 Fixed cancelling task, need to figure out how to handle CancelledError properly 2020-03-20 11:32:53 +01:00
nocturn9x 61503a44db Added support for cancelling tasks 2020-03-20 11:27:26 +01:00
nocturn9x 6c28c7db20 Added support for giambio.sleep() and minor fixes (still joining issue) 2020-03-20 11:12:44 +01:00
nocturn9x 94092a7ae7 removed the sync_only decorator 2020-03-20 10:27:12 +01:00
nocturn9x f7fadabc5e Added 2 more attributed to the Task object 2020-03-20 10:26:42 +01:00
nocturn9x 84118f3990 Removed nano save file 2020-03-19 21:15:46 +00:00
nocturn9x 189ffbaa53 Added some fixes, still just partially working (join issue still there) 2020-03-19 21:15:22 +00:00
nocturn9x b059125991 Improved features, still needs fix 2020-03-19 18:48:24 +00:00