wlandau / crew

A distributed worker launcher
https://wlandau.github.io/crew/
Other
129 stars 4 forks source link

Event-driven promises, relying only on mirai #164

Closed wlandau closed 6 months ago

wlandau commented 7 months ago

Prework

Related GitHub issues and pull requests

Summary

This PR deprecates native promises in crew in favor of the latest in Shiny and development mirai. Thanks to event-driven promises, crew can rely on individual mirai objects to invalidate reactive expressions, even in the presence of thousands of tasks. The new Shiny integration vignette shows how this works. It's just as user-friendly as before, and it makes controller$promise() completely obsolete.

I will wait to merge this until the next versions of mirai and nanonext are released.