@@ -182,7 +182,7 @@ async def spawn(self, coro, cb=None, ctx=None):
182182 self ._waiting [future ] =  self .loop .create_future () # as a placeholder 
183183 return  await  self ._spawn (future , coro , cb = cb , ctx = ctx )
184184
185-  async   def  spawn_n (self , coro , cb = None , ctx = None ):
185+  def  spawn_n (self , coro , cb = None , ctx = None ):
186186 '''Creates waiting task for given `coro` regardless of pool space. If 
187187 pool is not full, this task will be executed very soon. Main difference 
188188 is that `spawn_n` does not block and returns future very quickly. 
@@ -203,15 +203,15 @@ async def exec(self, coro, cb=None, ctx=None):
203203 ''' 
204204 return  await  (await  self .spawn (coro , cb , ctx ))
205205
206-  async   def  map_n (self , fn , iterable , cb = None , ctx = None ):
206+  def  map_n (self , fn , iterable , cb = None , ctx = None ):
207207 '''Creates coroutine with `fn` function for each item in `iterable`, 
208208 spawns each of them with `spawn_n`, returning futures. 
209209
210210 Read more about callbacks in `spawn` docstring. 
211211 ''' 
212212 futures  =  []
213213 for  it  in  iterable :
214-  fut  =  await   self .spawn_n (fn (it ), cb , ctx )
214+  fut  =  self .spawn_n (fn (it ), cb , ctx )
215215 futures .append (fut )
216216 return  futures 
217217
0 commit comments