Craig Gidney

Results 155 issues of Craig Gidney

Takes a list of IJar and implements IJar from those jars.

Currently, removing a callback can involve searching for it in an array. By using a doubly-linked list, or maybe just a hash table, the worst-case or at least expected times...

stability
design

One thing that would make the library significantly more useful is if it had pre-made wrappers for asynchronous methods in the framework (e.g. getting address books, creating a network connection,...

design
idea

One common use case for cancel tokens is "throw away all the old stuff, we have new orders". For example, when a browser browses to a new page it discards...

idea

The doc comment on orderedByCompletionUnless incorrectly says that the resulting future is cancelled if the given token is cancelled. The result isn't even a future. The actual behavior is that...

bug

When a future given to thenAll or finallyAll becomes immortal, the resulting future should also become immortal. When a future given to orderedByCompletion becomes immortal, later entries in the array...

stability

It might be possible to make strange things happen by racing the completion of two futures, where one is set to be the result of the other. Basically: - The...

bug