Commit Graph

102 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire fb4cc5bfc9 Executor
- Fixed `isSupportedReturn` check
- Also fixed the future builder
2023-10-01 21:46:00 +02:00
Tristan B. Velloza Kildaire 6d81be43c0 Executor
- Updated templated function `isSupportedReturn` to support any `Object` and derivative thereof
2023-10-01 21:43:21 +02:00
Tristan B. Velloza Kildaire bc2cb85230 Branding
- Scaled banner down
2023-10-01 17:07:11 +02:00
Tristan B. Velloza Kildaire 80f3bad532 README
- Added banner
2023-10-01 17:06:06 +02:00
Tristan B. Velloza Kildaire 538d6e6b4c Branding
- Added square logo
- Updated banner
2023-10-01 17:04:54 +02:00
Tristan B. Velloza Kildaire 5171caf03c Branding
- Added a banner
2023-10-01 17:03:36 +02:00
Tristan B. Velloza Kildaire 34b550dbd4 Merge branch 'master' of github.com:deavmi/guillotine 2023-10-01 17:00:03 +02:00
Tristan B. Velloza Kildaire 79aaab4fa5 Branding
- Added logo
2023-10-01 16:59:58 +02:00
Tristan B. Velloza Kildaire 42760c6742
Update d.yml 2023-10-01 16:44:28 +02:00
Tristan B. Velloza Kildaire 8f9bf2d0d4
Update d.yml 2023-10-01 16:42:59 +02:00
Tristan B. Velloza Kildaire e22e04028b
Update d.yml 2023-10-01 16:41:48 +02:00
Tristan B. Velloza Kildaire f67197676e
Update d.yml 2023-10-01 16:40:10 +02:00
Tristan B. Velloza Kildaire 668ab15a2a
Update d.yml 2023-10-01 16:39:07 +02:00
Tristan B. Velloza Kildaire 96ea6b69b6
Update d.yml 2023-10-01 16:38:39 +02:00
Tristan B. Velloza Kildaire 1ea215d8d1
Update d.yml 2023-10-01 16:37:02 +02:00
Tristan B. Velloza Kildaire 5990248e1f
Update d.yml 2023-10-01 16:35:42 +02:00
Tristan B. Velloza Kildaire 0ef4f14004
Update d.yml 2023-10-01 16:34:47 +02:00
Tristan B. Velloza Kildaire da0fdfcbc5
Add delegate support for task submission (#2)
* Executor

- Added support for delegates
- We now secretly convert everything to a delegate

* Executor

- Only do conversion to a delegate if it is a function, otherwise assign directly (with no conversion)
2023-10-01 16:27:18 +02:00
Tristan B. Velloza Kildaire 93fded7c25
Update README.md 2023-10-01 15:18:35 +02:00
Tristan B. Velloza Kildaire 83739a8e5d
Update d.yml 2023-10-01 15:17:40 +02:00
Tristan B. Velloza Kildaire 5b426fa7be WorkerFunction
- Make this private
2023-06-26 08:39:34 +02:00
Tristan B. Velloza Kildaire 29a2169062 Dub
- Updated once more
2023-06-26 08:38:58 +02:00
Tristan B. Velloza Kildaire 734bbabdc5 Dub
- Updated homepage
2023-06-26 08:37:24 +02:00
Tristan B. Velloza Kildaire 0319ae1840 Unit tests
- Make testing methods private
2023-06-26 08:36:29 +02:00
Tristan B. Velloza Kildaire 05a7fd130e Sequential
- Removed now-completed TODO
- Cleaned up import
2023-06-26 08:35:33 +02:00
Tristan B. Velloza Kildaire 03118d7959 Sequential
- Documented constructor and `start()` method
2023-06-26 08:31:56 +02:00
Tristan B. Velloza Kildaire dee2dce7ce Sequential
- Documented `consumeTask(Task)`
- Documented class and mdoule
2023-06-26 08:30:17 +02:00
Tristan B. Velloza Kildaire 5d152e3e4a Sequential
- Now throws a `GuillotineException` if `stop()` fails

Provider

- `stop()` may throw an exception
2023-06-26 08:28:21 +02:00
Tristan B. Velloza Kildaire 714b1b1972 Exceptions
- Added exception type `GuillotineException`
2023-06-26 08:27:25 +02:00
Tristan B. Velloza Kildaire 8baaf0b030 Package
- Added missing import for `provider` module

Provider

- Documented entirety
2023-06-25 21:06:45 +02:00
Tristan B. Velloza Kildaire 3d03377cbf Executor
- Documented module

Package

- Documented module
- Added documented public imports
2023-06-25 21:00:23 +02:00
Tristan B. Velloza Kildaire 1921ba7f44 Value
- Documented in its entirety
- Made all constructors private for now
2023-06-25 20:57:22 +02:00
Tristan B. Velloza Kildaire bcfc00d2c1 Result
- Documented module, field, constructor and both methods
2023-06-25 20:55:23 +02:00
Tristan B. Velloza Kildaire f43c51b199 - Cleaned up testing 2023-06-25 20:52:44 +02:00
Tristan B. Velloza Kildaire 063b9d806c Test again 2023-06-25 20:28:32 +02:00
Tristan B. Velloza Kildaire f82ac01430 Undone that kak 2023-06-25 20:20:20 +02:00
Tristan B. Velloza Kildaire 2b4e6a2ad9 Trying sub-packages out 2023-06-25 20:14:04 +02:00
Tristan B. Velloza Kildaire 2e2d73d051 Result
- Documented struct

Task

- Removed unused module
2023-06-25 20:05:14 +02:00
Tristan B. Velloza Kildaire a4fbb46c44
Update README.md 2023-06-25 20:03:37 +02:00
Tristan B. Velloza Kildaire 1b23627026 Executor
- Documneted paramterless constructor
- Documented `submitTask!(alias)()`
2023-06-25 20:00:34 +02:00
Tristan B. Velloza Kildaire 1b00df64ef Future
- Documented `Future` class, `State` enum and the module itself
2023-06-25 19:26:20 +02:00
Tristan B. Velloza Kildaire afd5e96775 Future
- Documented `await()`
2023-06-25 19:25:32 +02:00
Tristan B. Velloza Kildaire d9b1a8ee35 - Updated `.gitignore` 2023-06-25 19:23:43 +02:00
Tristan B. Velloza Kildaire bbe2db6a07 Future
- Don't throw an exception if one calls `await()` on a `Future` that is in the `NOT_STARTED` `State`
2023-06-25 19:20:56 +02:00
Tristan B. Velloza Kildaire 28bc97e702 Sequential
- Documented the `stop()` method
- `stop()` will now call `join()` on the `runner` thread to wait for completion and THEN only return from `stop()`
2023-06-25 19:17:42 +02:00
Tristan B. Velloza Kildaire aa2ee059f4 FutureTask
- Prior to calling the `func()` set the associated `Future`'s `State` to `State.RUNNING`

Unittests

- Assert the return valuer of the `Future`'s `Result`

Future

- Make the `state field package accessible
- If one calls `await()` and the `Future` has already had its state set to `ERRORED` or `FINISHED` then rethrow the error or return the result respectively
- if you call `await()` on a `Future` which is not yet running then it throws an `Exception`
- Refactored code around this logic
2023-06-25 19:13:59 +02:00
Tristan B. Velloza Kildaire e4845aabba Future
- Store the `Exception` which occurred via `error(Exception)` instead of parameterless `error()`
- Added TODO to check

FutureTask

- On error store the `Exception` and then pass it to `error(Exception)` in the `Future`

Executor

- Typo fix
2023-06-25 19:01:25 +02:00
Tristan B. Velloza Kildaire 31f5f2ddda FutureTask
- Documented properly, constructor, fields, class and methods
- Removed TODO that is completed now already below
2023-06-25 18:34:58 +02:00
Tristan B. Velloza Kildaire 4d7897bd63 FutureTask
- This TODO is now removed as this is done from with the `completed()`/`error()` calls
- Removeds storing, also done as in above fashion
2023-06-25 18:19:42 +02:00
Tristan B. Velloza Kildaire 42eda6287a Executor
- Not sure what I meant  by this, removed this TODO
- Removed some commented-out code
2023-06-25 18:19:01 +02:00