matsadler / magnus

Ruby bindings for Rust. Write Ruby extension gems in Rust, or call Ruby from Rust.
https://docs.rs/magnus/latest/magnus/
MIT License
682 stars 35 forks source link

Add `Ruby::postponed_job_register` #73

Closed ianks closed 11 months ago

ianks commented 1 year ago

Add support for registering postponed jobs. This will allow users to more easily debug DataTypeFunction::mark calls, for example.

There are potentially some abstractions that can be built later if we want, but for now just having a safe API to register a job will suffice for many cases.

ianks commented 1 year ago

LMK if I should change anything else @matsadler

ianks commented 1 year ago

@matsadler Do you think you can give a last review?