Minor changes
This commit is contained in:
parent
ff2acf298f
commit
1530b54fc5
|
@ -15,10 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
from functools import partial
|
|
||||||
|
|
||||||
from aiosched.task import Task
|
from aiosched.task import Task
|
||||||
from aiosched.errors import Cancelled
|
|
||||||
from aiosched.internals.syscalls import (
|
from aiosched.internals.syscalls import (
|
||||||
spawn,
|
spawn,
|
||||||
wait,
|
wait,
|
||||||
|
|
|
@ -88,7 +88,7 @@ def with_context(*args, **kwargs) -> TaskContext:
|
||||||
"""
|
"""
|
||||||
Creates and returns a new TaskContext
|
Creates and returns a new TaskContext
|
||||||
object. All positional and keyword arguments
|
object. All positional and keyword arguments
|
||||||
are passed to TaskContext's constructor
|
are passed to the TaskContext constructor
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return TaskContext(*args, **kwargs)
|
return TaskContext(*args, **kwargs)
|
||||||
|
|
Reference in New Issue