freeatlantis.com is one of the many independent Mastodon servers you can use to participate in the fediverse.

Administered by:

Server stats:

197
active users

#executors

0 posts0 participants0 posts today
Tristan B. Velloza Kildaire<p>I’ve been needing something akin to, what I now know to be Java’s <code>ExecutorService</code>, but in my language of choice - D! So I decided to go about it and implement it.</p><p>I’ve written it in such a manner such that is is extendable and new providers (job runners, think “pooled threads”, “serial runners” and so on) can be plugged in easily. For the initial proof of concept I created a <code>SequentialProvider</code> which just consumes tasks and executes them on a single thread in serial, next up is the thread pool version which I will get around to soon enough.</p><p>It’s really been fun to actually play with meta-programming more in D - I had to this time as I had to be able to make using this library as pleasant as possible as I require it for a project of mine - and I don’t want any hassles.</p><p>So there ya go!</p><p><a href="https://deavmi.assigned.network/blog/guillotine/" rel="nofollow noopener noreferrer" target="_blank">https://deavmi.assigned.network/blog/guillotine/</a></p><p><a class="hashtag" href="https://gleasonator.com/tag/threading" rel="nofollow noopener noreferrer" target="_blank">#threading</a> <a class="hashtag" href="https://gleasonator.com/tag/executors" rel="nofollow noopener noreferrer" target="_blank">#executors</a> <a class="hashtag" href="https://gleasonator.com/tag/futures" rel="nofollow noopener noreferrer" target="_blank">#futures</a> <a class="hashtag" href="https://gleasonator.com/tag/dlang" rel="nofollow noopener noreferrer" target="_blank">#dlang</a></p>