25 lines
674 B
ReStructuredText
25 lines
674 B
ReStructuredText
.. _-extractExecutionContext-:
|
|
|
|
extractExecutionContext
|
|
=======================
|
|
|
|
Signature
|
|
---------
|
|
|
|
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/BasicDirectives.scala
|
|
:snippet: extractExecutionContext
|
|
|
|
Description
|
|
-----------
|
|
|
|
Extracts the ``ExecutionContext`` from the ``RequestContext``.
|
|
|
|
See :ref:`-withExecutionContext-` to see how to customise the execution context provided for an inner route.
|
|
|
|
See :ref:`-extract-` to learn more about how extractions work.
|
|
|
|
Example
|
|
-------
|
|
|
|
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/BasicDirectivesExamplesSpec.scala
|
|
:snippet: extractExecutionContext-0
|