How can I find the taxonomy in edited_{taxonomy}?

This seems to work, don’t know if it’s the correct approach.

add_action ( 'edited_' . $taxonomy->name, function( $term_id ) use ( $taxonomy ) {
     $term = get_term( $term_id, $taxonomy->name ); 
});