```coffeescript
define ['backbone.marionette'], (Marionette) ->
    class Router extends Marionette.AppRouter
        routes:
            'unit/:id': 'renderUnit',
            'unit/?*params': 'renderUnitsWithFilter'

        renderUnit: (id)->
            app.vent.trigger 'unit:render-one', id

        renderUnitsWithFilter: (params) ->
            app.vent.trigger 'units:render-with-filter', params

    Router
```

Fix issue caused by asynchronous routing delaying a callback function
user
```coffeescript
define ['backbone.marionette'], (Marionette) ->
    delayTime = 500
    class Router extends Marionette.AppRouter
        routes:
            'unit/:id': 'renderUnit',
            'unit/?*params': 'renderUnitsWithFilter'

        renderUnit: (id)->
            delayed = -> app.vent.trigger 'unit:render-one', id
            _.delay delayed, delayTime

        renderUnitsWithFilter: (params) ->
            delayed = -> app.vent.trigger 'units:render-with-filter', params
            _.delay delayed, delayTime

    Router
```
assistant