MCPcopy Index your code
hub / github.com/encounter/objdiff / start_create_scratch

Function start_create_scratch

objdiff-gui/src/jobs.rs:37–53  ·  view source on GitHub ↗
(
    ctx: &egui::Context,
    jobs: &mut JobQueue,
    state: &AppState,
    function_name: String,
)

Source from the content-addressed store, hash-verified

35}
36
37pub fn start_create_scratch(
38 ctx: &egui::Context,
39 jobs: &mut JobQueue,
40 state: &AppState,
41 function_name: String,
42) {
43 match create_scratch_config(state, function_name) {
44 Ok(config) => {
45 jobs.push_once(Job::CreateScratch, || {
46 create_scratch::start_create_scratch(egui_waker(ctx), config)
47 });
48 }
49 Err(err) => {
50 log::error!("Failed to create scratch config: {err}");
51 }
52 }
53}
54
55fn create_scratch_config(
56 state: &AppState,

Callers 1

post_updateMethod · 0.50

Calls 3

create_scratch_configFunction · 0.85
egui_wakerFunction · 0.85
push_onceMethod · 0.80

Tested by

no test coverage detected