The treatment could give patients with diabetes better, more immediate control over their blood sugar.