We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d669ba9 commit 47ec31cCopy full SHA for 47ec31c
src/Databags/DriverConfiguration.php
@@ -220,4 +220,17 @@ public function withAcquireConnectionTimeout(?float $acquireConnectionTimeout):
220
221
return $tbr;
222
}
223
+
224
+ /**
225
+ * @param callable():(SemaphoreFactoryInterface|null)|SemaphoreFactoryInterface|null $factory
226
+ *
227
+ * @psalm-immutable
228
+ */
229
+ public function withSemaphoreFactory($factory): self
230
+ {
231
+ $tbr = clone $this;
232
+ $tbr->semaphoreFactory = $factory;
233
234
+ return $tbr;
235
+ }
236
0 commit comments