You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -314,6 +326,7 @@ impl fmt::Display for ConcurrentWorkerErrors {
314
326
}
315
327
}
316
328
329
+
#[cfg(feature = "experimental-concurrency")]
317
330
impl std::error::ErrorforConcurrentWorkerErrors{}
318
331
319
332
impl<S>Runtime<S>
@@ -323,11 +336,12 @@ where
323
336
/// Start the runtime and begin polling for events on the Lambda Runtime API.
324
337
///
325
338
/// If `AWS_LAMBDA_MAX_CONCURRENCY` is set, this returns an error because it does not enable
326
-
/// concurrent polling. Use [`Runtime::run_concurrent`] instead.
339
+
/// concurrent polling. Enable the `experimental-concurrency` feature and use
340
+
/// [`Runtime::run_concurrent`] instead.
327
341
pubasyncfnrun(self) -> Result<(),BoxError>{
328
342
ifletSome(raw) = concurrency_env_value(){
329
343
returnErr(Box::new(io::Error::other(format!(
330
-
"AWS_LAMBDA_MAX_CONCURRENCY is set to '{raw}', but Runtime::run does not support concurrent polling; use Runtime::run_concurrent instead"
344
+
"AWS_LAMBDA_MAX_CONCURRENCY is set to '{raw}', but Runtime::run does not support concurrent polling; enable the experimental-concurrency feature and use Runtime::run_concurrent instead"
331
345
))));
332
346
}
333
347
let incoming = incoming(&self.client);
@@ -398,6 +412,7 @@ fn incoming(
398
412
}
399
413
400
414
/// Creates a future that polls the `/next` endpoint.
0 commit comments